diff --git a/.zshrc b/.zshrc index 4eeb03c..31b5bbb 100644 --- a/.zshrc +++ b/.zshrc @@ -43,7 +43,8 @@ export ANSIBLE_HOSTS=hosts # if we have npm, we probably want to use npm binaries # I don't like installing globally (npm -g), so add local # node modules' bin to PATH -if which npm >/dev/null 2>&1; then +command -v npm >/dev/null 2>&1 +if [[ $? -eq 0 ]]; then export PATH=$PATH:node_modules/.bin fi