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
fi
which rbenv &> /dev/null
if (( !$? )); then
if [[ -d "$HOME/.rbenv" ]]; then
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
fi