mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
Fix incorrect PATH setting with system-wide rbenv
When using system-wide rbenv (as in provided by vendor packages like in Ubuntu or FreeBSD), PATH is not set to the correct ruby binary. This leads to being unable to use rubies installed with rbenv (and stick with the system-wide ruby installed, if any). This patch correct this behaviour, setting the correct PATH.
This commit is contained in:
parent
76a26a2a59
commit
af4c50c0ad
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ if _homebrew-installed && rbenv_homebrew_path=$(brew --prefix rbenv 2>/dev/null)
|
|||
fi
|
||||
|
||||
for rbenvdir in "${rbenvdirs[@]}" ; do
|
||||
if [ -d $rbenvdir/bin -a $FOUND_RBENV -eq 0 ] ; then
|
||||
if [ -d $rbenvdir -a $FOUND_RBENV -eq 0 ] ; then
|
||||
FOUND_RBENV=1
|
||||
if [[ $RBENV_ROOT = '' ]]; then
|
||||
RBENV_ROOT=$rbenvdir
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue