From aee29238b15a2991e84f9f444dd0c397004f5c43 Mon Sep 17 00:00:00 2001 From: Caio Gondim Date: Fri, 22 May 2015 20:11:34 +0200 Subject: [PATCH] Fix NVM detection Was getting syntax error on OS X with zsh --- bullet-train.zsh-theme | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bullet-train.zsh-theme b/bullet-train.zsh-theme index e5ac36a..c03ce69 100644 --- a/bullet-train.zsh-theme +++ b/bullet-train.zsh-theme @@ -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