.zshrc: Use simpler test for NVM and RVM
This commit is contained in:
parent
ff2994fb10
commit
41134c326a
8
.zshrc
8
.zshrc
@ -79,9 +79,7 @@ export PAGER=less
|
|||||||
export ANSIBLE_HOSTS=hosts
|
export ANSIBLE_HOSTS=hosts
|
||||||
|
|
||||||
# Enable node version manager (nvm)
|
# Enable node version manager (nvm)
|
||||||
if [[ -s ~/.nvm/nvm.sh ]]; then
|
[[ -s ~/.nvm/nvm.sh ]] && . ~/.nvm/nvm.sh
|
||||||
. ~/.nvm/nvm.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Initialize pyenv if it exists
|
# Initialize pyenv if it exists
|
||||||
if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi
|
if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi
|
||||||
@ -93,9 +91,7 @@ if which jenv > /dev/null; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Enable ruby version manager if it exists
|
# Enable ruby version manager if it exists
|
||||||
if [[ -s ~/.rvm/scripts/rvm ]];
|
[[ -s ~/.rvm/scripts/rvm ]] && . ~/.rvm/scripts/rvm
|
||||||
. ~/.rvm/scripts/rvm
|
|
||||||
fi
|
|
||||||
|
|
||||||
# If a private bin directory exists, add it to PATH
|
# If a private bin directory exists, add it to PATH
|
||||||
[[ -d ~/bin ]] && PATH=$PATH:~/bin
|
[[ -d ~/bin ]] && PATH=$PATH:~/bin
|
||||||
|
Loading…
Reference in New Issue
Block a user