You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using homebrew to install rbenv (1.0.0), and want to use rbenv.plugin.zsh to enable ruby version display in zsh.
While fixing my issues, I've found two places to modify the current rbenv.plugin.zsh.
Issue 1
rbenvdirs=("$HOME/.rbenv""/usr/local/rbenv""/opt/rbenv""/usr/local/opt/rbenv")
if _homebrew-installed && rbenv_homebrew_path=$(brew --prefix rbenv 2>/dev/null);then
rbenvdirs=($rbenv_homebrew_path"${rbenvdirs[@]}")
unset rbenv_homebrew_path
fi
This section puts rbenv_homebrew_path in front of $HOME/.rbenv. It may work in previous version, but I've used homebrew to install rbenv, and rubies are installed under $HOME/.rbenv. So to make it work, I've comment out code in if section.
This section is finding rubies under ${rbenvdir}/bin path, but rbenv has put all bins into shims. So to make it work, I've changed to ${rbenvdir}/shims.
The text was updated successfully, but these errors were encountered:
I'm using homebrew to install rbenv (1.0.0), and want to use rbenv.plugin.zsh to enable ruby version display in zsh.
While fixing my issues, I've found two places to modify the current rbenv.plugin.zsh.
Issue 1
This section puts
rbenv_homebrew_path
in front of$HOME/.rbenv
. It may work in previous version, but I've used homebrew to install rbenv, and rubies are installed under$HOME/.rbenv
. So to make it work, I've comment out code in if section.Issue 2
This section is finding rubies under
${rbenvdir}/bin
path, but rbenv has put all bins intoshims
. So to make it work, I've changed to${rbenvdir}/shims
.The text was updated successfully, but these errors were encountered: