Don't export ruby-build/bin to PATH
If ruby-build is installed as a rbenv plugin, ruby-build/bin directories automatically included.
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
# Load rbebv, if you are using it
|
|
||||||
|
|
||||||
cite about-plugin
|
cite about-plugin
|
||||||
about-plugin 'load rbenv, if you are using it'
|
about-plugin 'load rbenv, if you are using it'
|
||||||
|
|
||||||
pathmunge "$HOME"/.rbenv/bin
|
export RBENV_ROOT="$HOME/.rbenv"
|
||||||
[ -x `which rbenv` ] && eval "$(rbenv init -)"
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user