Add rbenv to PATH if necessary

This commit is contained in:
Kevin Cotugno 2020-02-24 06:37:23 -07:00
parent 6054672d0e
commit 9a7175a500

4
.zshrc
View File

@ -32,8 +32,8 @@ if [[ -d "$HOME/.cargo" ]]; then
export PATH=$HOME/.cargo/bin:$PATH export PATH=$HOME/.cargo/bin:$PATH
fi fi
which rbenv &> /dev/null if [[ -d "$HOME/.rbenv" ]]; then
if (( !$? )); then export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)" eval "$(rbenv init -)"
fi fi