summaryrefslogtreecommitdiff
path: root/config/p10k-lean.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-03-05 18:14:39 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-03-05 18:14:39 +0300
commitcdb856e37490aa35d7eb9d9c0dd947af6e8f20d3 (patch)
tree6249665d192bb734fad063d6a13530ee1fae192d /config/p10k-lean.zsh
parentcff3575c1526f9babef7f00cb9904e8e95ad589c (diff)
add POWERLEVEL9K_NODENV_SOURCES to config templates
Diffstat (limited to 'config/p10k-lean.zsh')
-rw-r--r--config/p10k-lean.zsh5
1 files changed, 4 insertions, 1 deletions
diff --git a/config/p10k-lean.zsh b/config/p10k-lean.zsh
index 8dcf35b9..cbc9f54b 100644
--- a/config/p10k-lean.zsh
+++ b/config/p10k-lean.zsh
@@ -899,7 +899,10 @@
##########[ nodenv: node.js version from nodenv (https://github.com/nodenv/nodenv) ]##########
# Nodenv color.
typeset -g POWERLEVEL9K_NODENV_FOREGROUND=70
- # Don't show node version if it's the same as global: $(nodenv version-name) == $(nodenv global).
+ # Hide node version if it doesn't come from one of these sources.
+ typeset -g POWERLEVEL9K_NODENV_SOURCES=(shell local global)
+ # If set to false, hide node version if it's the same as global:
+ # $(nodenv version-name) == $(nodenv global).
typeset -g POWERLEVEL9K_NODENV_PROMPT_ALWAYS_SHOW=false
# Custom icon.
# typeset -g POWERLEVEL9K_NODENV_VISUAL_IDENTIFIER_EXPANSION='⭐'