From d5afbad716d9a15d065e86c6373f540a0babdcf9 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sun, 26 Jul 2015 14:07:40 +0300 Subject: [PATCH] .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 --- .zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.zshrc b/.zshrc index d775184..dfca5f5 100644 --- a/.zshrc +++ b/.zshrc @@ -66,7 +66,7 @@ export PAGER=less export ANSIBLE_HOSTS=hosts # Enable user's "global" npm packages -if [[ -d ~/.npm-packages ]]; then +if [[ -d ~/.npm-packages/bin ]]; then PATH=$PATH:~/.npm-packages/bin fi @@ -96,7 +96,7 @@ if [[ -d ~/Downloads/go ]]; then fi # 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 MANPATH