.zshrc: Check for existence of bin directories we're adding

Actually check for the directories that we are adding to the PATH.

Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
Alan Orth 2015-07-26 14:07:40 +03:00
parent a5199335f1
commit d5afbad716
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

4
.zshrc
View File

@ -66,7 +66,7 @@ export PAGER=less
export ANSIBLE_HOSTS=hosts export ANSIBLE_HOSTS=hosts
# Enable user's "global" npm packages # Enable user's "global" npm packages
if [[ -d ~/.npm-packages ]]; then if [[ -d ~/.npm-packages/bin ]]; then
PATH=$PATH:~/.npm-packages/bin PATH=$PATH:~/.npm-packages/bin
fi fi
@ -96,7 +96,7 @@ if [[ -d ~/Downloads/go ]]; then
fi fi
# If heroku toolbelt is installed, add it to PATH # If heroku toolbelt is installed, add it to PATH
[[ -d /usr/local/heroku ]] && PATH=$PATH:/usr/local/heroku/bin [[ -d /usr/local/heroku/bin ]] && PATH=$PATH:/usr/local/heroku/bin
export PATH export PATH
export MANPATH export MANPATH