Try to be safer about doing stuff in shellenv.sh (checking for existence

of commands)
This commit is contained in:
Ivan Malison 2015-01-30 20:00:54 -08:00
parent 224d0c15b5
commit 3959692b59

View File

@ -48,5 +48,5 @@ function with_shellrc {
export RBENV_ROOT=/usr/local/var/rbenv
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
eval `/usr/libexec/path_helper -s`
hash rbenv > /dev/null && eval "$(rbenv init -)"
test -e /usr/libexec/path_helper && eval `/usr/libexec/path_helper -s`