This commit is contained in:
GitHub Merge Button 2011-11-08 12:25:42 -08:00
commit 48c53f95c3
2 changed files with 5 additions and 6 deletions

View file

@ -1,6 +1,10 @@
# get the name of the branch we are on
function rvm_prompt_info() {
ruby_version=$(~/.rvm/bin/rvm-prompt 2> /dev/null) || return
if [ -z $ruby_version ]
then
return
fi
echo "($ruby_version)"
}

View file

@ -37,10 +37,5 @@ _run-with-bundler() {
## Main program
for cmd in $bundled_commands; do
eval "function bundled_$cmd () { _run-with-bundler $cmd \$@}"
alias $cmd=bundled_$cmd
if which _$cmd > /dev/null 2>&1; then
compdef _$cmd bundled_$cmd
fi
alias $cmd="_run-with-bundler $cmd"
done