mirror of
https://github.com/Cornelicorn/bullet-train.zsh.git
synced 2025-12-06 03:40:41 +01:00
Do not show nvm/node prompt if neither is installed
This commit is contained in:
@@ -522,8 +522,10 @@ prompt_nvm() {
|
||||
if type nvm >/dev/null 2>&1; then
|
||||
nvm_prompt=$(nvm current 2>/dev/null)
|
||||
[[ "${nvm_prompt}x" == "x" ]] && return
|
||||
else
|
||||
elif type node >/dev/null 2>&1; then
|
||||
nvm_prompt="$(node --version)"
|
||||
else
|
||||
return
|
||||
fi
|
||||
nvm_prompt=${nvm_prompt}
|
||||
prompt_segment $BULLETTRAIN_NVM_BG $BULLETTRAIN_NVM_FG $BULLETTRAIN_NVM_PREFIX$nvm_prompt
|
||||
|
||||
Reference in New Issue
Block a user