Fix minor issues and duplicates shell env PATH setup

This commit is contained in:
2013-11-17 11:00:47 +00:00
parent f437efa4be
commit b76a252380
3 changed files with 6 additions and 8 deletions

View File

@@ -37,11 +37,9 @@ fi
# Load rbenv or RVM depending on which is available
if [ -d "$HOME/.rbenv/bin" ]; then
# Don't load rbenv again if oh-my-zsh's rbenv plugin already has
if [[ ":$PATH:" != *":$HOME/.rbenv/bin:"* ]]; then
path_prepend "$HOME/.rbenv/bin"
eval "$(rbenv init -)"
fi
path_prepend "$HOME/.rbenv/bin"
path_prepend "$HOME/.rbenv/shims"
eval "$(rbenv init -)"
elif [ -s "$HOME/.rvm/scripts/rvm" ]; then
source "$HOME/.rvm/scripts/rvm"
fi