aboutsummaryrefslogtreecommitdiff
path: root/config/lean.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'config/lean.zsh')
-rw-r--r--config/lean.zsh20
1 files changed, 20 insertions, 0 deletions
diff --git a/config/lean.zsh b/config/lean.zsh
index 63c9c8e0..6e59ce5b 100644
--- a/config/lean.zsh
+++ b/config/lean.zsh
@@ -30,6 +30,10 @@ fi
# virtualenv # python virtual environment (https://docs.python.org/3/library/venv.html)
# anaconda # conda environment (https://conda.io/)
# pyenv # python environment (https://github.com/pyenv/pyenv)
+ # nodenv # node.js version from nodenv (https://github.com/nodenv/nodenv)
+ # nvm # node.js version from nvm (https://github.com/nvm-sh/nvm)
+ # nodeenv # node.js environment (https://github.com/ekalinin/nodeenv)
+ # node_version # node.js version
# kubecontext # current kubernetes context (https://kubernetes.io/)
context # user@host
# time # current time
@@ -190,6 +194,22 @@ fi
# Don't show the current Python version if it's the same as global.
typeset -g POWERLEVEL9K_PYENV_PROMPT_ALWAYS_SHOW=false
+ # Nodenv color.
+ typeset -g POWERLEVEL9K_NODENV_FOREGROUND=2
+ # Don't show node version if it's the same as global: $(nodenv version-name) == $(nodenv global).
+ typeset -g POWERLEVEL9K_NODENV_PROMPT_ALWAYS_SHOW=false
+
+ # Nvm color.
+ typeset -g POWERLEVEL9K_NVM_FOREGROUND=2
+
+ # Nodeenv color.
+ typeset -g POWERLEVEL9K_NODEENV_FOREGROUND=2
+
+ # Node version color.
+ typeset -g POWERLEVEL9K_NODE_VERSION_FOREGROUND=2
+ # Show node version only when in a directory tree containing package.json.
+ typeset -g P9K_NODE_VERSION_PROJECT_ONLY=true
+
# Kubernetes context classes for the purpose of using different colors with
# different contexts.
#