Skip to content

Commit

Permalink
hide Node version in prompt when nvm is installed and system node v…
Browse files Browse the repository at this point in the history
…ersion is beeing used. (#314)
  • Loading branch information
nexero authored and caiogondim committed Sep 17, 2019
1 parent 451708d commit d60f62c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bullet-train.zsh-theme
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d60f62c

Please sign in to comment.