From e3924f173c1a685930d932ae59c3d448a02bacf8 Mon Sep 17 00:00:00 2001 From: Lyncredible Date: Wed, 27 Apr 2016 11:04:34 -0700 Subject: [PATCH] Fix for parse error - Issue #134 Conditional operator [[ ]] tests files and strings. To test error codes returned from command, use if statement directly without any operators. --- 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 2e8403e..a3da493 100644 --- a/bullet-train.zsh-theme +++ b/bullet-train.zsh-theme @@ -540,7 +540,7 @@ prompt_nvm() { fi local nvm_prompt - if [[ $(type nvm >/dev/null 2>&1) ]]; then + if type nvm >/dev/null 2>&1; then nvm_prompt=$(nvm current 2>/dev/null) [[ "${nvm_prompt}x" == "x" ]] && return else