.zshrc: Only export variables at the end

Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
Alan Orth 2015-05-05 11:40:42 +03:00
parent 5d13f77f10
commit aaf0f15669
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

5
.zshrc
View File

@ -68,14 +68,14 @@ export ANSIBLE_INVENTORY=hosts
# node modules' bin to PATH # node modules' bin to PATH
command -v npm >/dev/null 2>&1 command -v npm >/dev/null 2>&1
if [[ $? -eq 0 ]]; then if [[ $? -eq 0 ]]; then
export PATH=$PATH:node_modules/.bin PATH=$PATH:node_modules/.bin
fi fi
# Enable pyenv # Enable pyenv
# See: https://github.com/yyuu/pyenv#basic-github-checkout # See: https://github.com/yyuu/pyenv#basic-github-checkout
if [[ -d ~/.pyenv ]]; then if [[ -d ~/.pyenv ]]; then
export PYENV_ROOT="$HOME/.pyenv" export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH" PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)" eval "$(pyenv init -)"
# optionally enable pyenv-virtualenv # optionally enable pyenv-virtualenv
@ -89,3 +89,4 @@ fi
[[ -d ~/bin ]] && PATH="$PATH:~/bin" [[ -d ~/bin ]] && PATH="$PATH:~/bin"
export PATH export PATH
export MANPATH