mirror of
https://github.com/Cornelicorn/bullet-train.zsh.git
synced 2025-12-06 11:50:38 +01:00
Merge pull request #39 from gvillalta99/fix/nvm_testing
Testing npm without leting which and type output escape
This commit is contained in:
@@ -355,7 +355,7 @@ prompt_nvm() {
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[[ $(which nvm) != "nvm not found" ]] || return
|
[[ $(type nvm >/dev/null 2>&1) || $(which nvm >/dev/null 2>&1) ]] || return
|
||||||
local nvm_prompt
|
local nvm_prompt
|
||||||
nvm_prompt=$(node -v 2>/dev/null)
|
nvm_prompt=$(node -v 2>/dev/null)
|
||||||
[[ "${nvm_prompt}x" == "x" ]] && return
|
[[ "${nvm_prompt}x" == "x" ]] && return
|
||||||
|
|||||||
Reference in New Issue
Block a user