check if rbenv shim is already in path

This commit is contained in:
James Dixon 2021-01-30 16:44:03 -05:00
parent b33054e59a
commit d312c1913b

View File

@ -232,7 +232,7 @@ if command -v ruby > /dev/null && command -v gem > /dev/null; then
# rbenv shim # rbenv shim
if [ -d "$HOME/.rbenv/bin" ]; then if [ -d "$HOME/.rbenv/bin" ]; then
appendpath "$HOME/.rbenv/bin" appendpath "$HOME/.rbenv/bin"
eval "$(rbenv init -)" [[ ":$PATH:" != *":$HOME/.rbenv/shims:"* ]] && eval "$(rbenv init -)"
fi fi
fi fi