aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorRobert Jorgenson <rjorgenson@gmail.com>2016-01-15 00:09:39 +0300
committerRobert Jorgenson <rjorgenson@gmail.com>2016-01-15 00:09:39 +0300
commit2fa7b1d08f55e71397f13f4e943491426b0e98c0 (patch)
treebbd3dc04002c54d11cadc09d51ec0724c8db27d7 /powerlevel9k.zsh-theme
parente29b3545bd4dc22f874347df9eb296e62105b94e (diff)
don't output segment if node_version was not populated
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme2
1 files changed, 1 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 451d1b6f..23e53221 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -538,7 +538,7 @@ prompt_nvm() {
[[ "$node_version" =~ "$nvm_default" ]] && return
fi
- $1_prompt_segment "$0" "$2" "green" "011" "${node_version:1}" 'NODE_ICON'
+ [[ -n "${node_version}" ]] && $1_prompt_segment "$0" "$2" "green" "011" "${node_version:1}" 'NODE_ICON'
}
# print a little OS icon