mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-17 04:29:14 +02:00
Merge bf529e7d63 into d165a84dc0
This commit is contained in:
commit
4c3a456d37
1 changed files with 40 additions and 29 deletions
|
|
@ -17,6 +17,20 @@ for rbenvdir in "${rbenvdirs[@]}" ; do
|
|||
FOUND_RBENV=1
|
||||
export RBENV_ROOT=$rbenvdir
|
||||
export PATH=${rbenvdir}/bin:$PATH
|
||||
fi
|
||||
done
|
||||
unset rbenvdir
|
||||
|
||||
# If not found above, check for the existence of the rbenv executable anyway.
|
||||
if [ $FOUND_RBENV -eq 0 ] ; then
|
||||
if ( which rbenv > /dev/null 2>&1 ) ; then
|
||||
FOUND_RBENV=1
|
||||
export RBENV_ROOT=$(rbenv root)
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ $FOUND_RBENV -eq 1 ] ; then
|
||||
|
||||
eval "$(rbenv init -)"
|
||||
|
||||
alias rubies="rbenv versions"
|
||||
|
|
@ -46,11 +60,8 @@ for rbenvdir in "${rbenvdirs[@]}" ; do
|
|||
echo "$(current_ruby)"
|
||||
fi
|
||||
}
|
||||
fi
|
||||
done
|
||||
unset rbenvdir
|
||||
|
||||
if [ $FOUND_RBENV -eq 0 ] ; then
|
||||
else
|
||||
alias rubies='ruby -v'
|
||||
function gemsets() { echo 'not supported' }
|
||||
function rbenv_prompt_info() { echo "system: $(ruby -v | cut -f-2 -d ' ')" }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue