From 30c160926da5e906d2768092888676e24adbf16f Mon Sep 17 00:00:00 2001 From: romkatv Date: Wed, 17 Jul 2019 00:36:39 +0200 Subject: [PATCH] add node.js prompt segments --- config/lean.zsh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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. #