mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Merge 85473f14b2 into 757fa3314d
This commit is contained in:
commit
48c53f95c3
2 changed files with 5 additions and 6 deletions
|
|
@ -1,6 +1,10 @@
|
||||||
# get the name of the branch we are on
|
# get the name of the branch we are on
|
||||||
function rvm_prompt_info() {
|
function rvm_prompt_info() {
|
||||||
ruby_version=$(~/.rvm/bin/rvm-prompt 2> /dev/null) || return
|
ruby_version=$(~/.rvm/bin/rvm-prompt 2> /dev/null) || return
|
||||||
|
if [ -z $ruby_version ]
|
||||||
|
then
|
||||||
|
return
|
||||||
|
fi
|
||||||
echo "($ruby_version)"
|
echo "($ruby_version)"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,10 +37,5 @@ _run-with-bundler() {
|
||||||
|
|
||||||
## Main program
|
## Main program
|
||||||
for cmd in $bundled_commands; do
|
for cmd in $bundled_commands; do
|
||||||
eval "function bundled_$cmd () { _run-with-bundler $cmd \$@}"
|
alias $cmd="_run-with-bundler $cmd"
|
||||||
alias $cmd=bundled_$cmd
|
|
||||||
|
|
||||||
if which _$cmd > /dev/null 2>&1; then
|
|
||||||
compdef _$cmd bundled_$cmd
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue