check if rbenv shim is already in path
This commit is contained in:
parent
b33054e59a
commit
d312c1913b
@ -232,7 +232,7 @@ if command -v ruby > /dev/null && command -v gem > /dev/null; then
|
||||
# rbenv shim
|
||||
if [ -d "$HOME/.rbenv/bin" ]; then
|
||||
appendpath "$HOME/.rbenv/bin"
|
||||
eval "$(rbenv init -)"
|
||||
[[ ":$PATH:" != *":$HOME/.rbenv/shims:"* ]] && eval "$(rbenv init -)"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user