summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2015-11-22 02:08:43 +0300
committerDominik Ritter <dritter03@googlemail.com>2015-11-22 02:08:43 +0300
commit4b636d226ede68bdd621cd382182959491bf747a (patch)
tree32d2ca4844341366a930a899acd06c3b60872859
parent49a3a3e750fd20e7f01829209b1b5fbfbeeb4b41 (diff)
Renamed variable.
-rwxr-xr-xpowerlevel9k.zsh-theme7
1 files changed, 3 insertions, 4 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 371ac31e..362077bb 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -395,11 +395,10 @@ prompt_load() {
# Node version
prompt_node_version() {
- local nvm_prompt
- nvm_prompt=$(node -v 2>/dev/null)
- [[ -z "${nvm_prompt}" ]] && return
+ local node_version=$(node -v 2>/dev/null)
+ [[ -z "${node_version}" ]] && return
- "$1_prompt_segment" "$0" "green" "white" "${nvm_prompt:1} $(print_icon 'NODE_ICON')"
+ "$1_prompt_segment" "$0" "green" "white" "${node_version:1} $(print_icon 'NODE_ICON')"
}
# print a little OS icon