From 0d947ddbdd39b4e09cc4d49618cc17ba24d31b2a Mon Sep 17 00:00:00 2001 From: gvillalta99 Date: Wed, 13 May 2015 11:25:08 -0300 Subject: [PATCH] Testing npm without leting which and type output escape --- bullet-train.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bullet-train.zsh-theme b/bullet-train.zsh-theme index a06b1e8..e5ac36a 100644 --- a/bullet-train.zsh-theme +++ b/bullet-train.zsh-theme @@ -355,7 +355,7 @@ prompt_nvm() { return fi - [[ $(which nvm) != "nvm not found" ]] || return + [[ $(type nvm >/dev/null 2>&1) || $(which nvm >/dev/null 2>&1) ]] || return local nvm_prompt nvm_prompt=$(node -v 2>/dev/null) [[ "${nvm_prompt}x" == "x" ]] && return