Don't export ruby-build/bin to PATH

If ruby-build is installed as a rbenv plugin, ruby-build/bin
directories automatically included.
pull/1250/head
Septian Dwic 2018-10-26 21:49:52 +07:00
parent 7661b561bf
commit 6cc7b9112e
No known key found for this signature in database
GPG Key ID: 0077D6E5BC7EE1E0
1 changed files with 6 additions and 5 deletions

View File

@ -1,9 +1,10 @@
# Load rbebv, if you are using it
cite about-plugin
about-plugin 'load rbenv, if you are using it'
pathmunge "$HOME"/.rbenv/bin
[ -x `which rbenv` ] && eval "$(rbenv init -)"
export RBENV_ROOT="$HOME/.rbenv"
pathmunge "$RBENV_ROOT/bin"
[ -d "$HOME"/.rbenv/plugins/ruby-build ] && pathmunge "$HOME"/.rbenv/plugins/ruby-build/bin
[[ `which rbenv` ]] && eval "$(rbenv init -)"
# Load the auto-completion script if rbenv was loaded.
[[ -e $RBENV_ROOT/completions/rbenv.bash ]] && source $RBENV_ROOT/completions/rbenv.bash