From d60f62c34b3d9253292eb8be81fb46fa65d8f048 Mon Sep 17 00:00:00 2001 From: Martin Strob Date: Tue, 17 Sep 2019 17:07:22 +0200 Subject: [PATCH] hide Node version in prompt when `nvm` is installed and system node version is beeing used. (#314) --- 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 69431ff..d72c4f5 100644 --- a/bullet-train.zsh-theme +++ b/bullet-train.zsh-theme @@ -589,7 +589,7 @@ prompt_nvm() { local nvm_prompt if type nvm >/dev/null 2>&1; then nvm_prompt=$(nvm current 2>/dev/null) - [[ "${nvm_prompt}x" == "x" ]] && return + [[ "${nvm_prompt}x" == "x" || "${nvm_prompt}" == "system" ]] && return elif type node >/dev/null 2>&1; then nvm_prompt="$(node --version)" else