mirror of
https://github.com/Cornelicorn/bullet-train.zsh.git
synced 2025-12-06 20:00:38 +01:00
Fix NVM detection
Was getting syntax error on OS X with zsh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user