Fix NVM detection

Was getting syntax error on OS X with zsh
This commit is contained in:
Caio Gondim
2015-05-22 20:11:34 +02:00
parent bbda487fd4
commit aee29238b1

View File

@@ -355,7 +355,8 @@ prompt_nvm() {
return
fi
[[ $(type nvm >/dev/null 2>&1) || $(which nvm >/dev/null 2>&1) ]] || return
$(type nvm >/dev/null 2>&1) || return
local nvm_prompt
nvm_prompt=$(node -v 2>/dev/null)
[[ "${nvm_prompt}x" == "x" ]] && return