add node.js prompt segments

This commit is contained in:
romkatv 2019-07-17 00:36:39 +02:00
parent 1acc559cc2
commit 30c160926d

View file

@ -30,6 +30,10 @@ fi
# virtualenv # python virtual environment (https://docs.python.org/3/library/venv.html) # virtualenv # python virtual environment (https://docs.python.org/3/library/venv.html)
# anaconda # conda environment (https://conda.io/) # anaconda # conda environment (https://conda.io/)
# pyenv # python environment (https://github.com/pyenv/pyenv) # 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/) # kubecontext # current kubernetes context (https://kubernetes.io/)
context # user@host context # user@host
# time # current time # time # current time
@ -190,6 +194,22 @@ fi
# Don't show the current Python version if it's the same as global. # Don't show the current Python version if it's the same as global.
typeset -g POWERLEVEL9K_PYENV_PROMPT_ALWAYS_SHOW=false 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 # Kubernetes context classes for the purpose of using different colors with
# different contexts. # different contexts.
# #