Show NodeJS version in Powerline themes (#1438)

Currently, only nvm is supported.
This commit is contained in:
Eduardo Bellido Bellido
2019-12-02 08:36:57 +01:00
committed by Nils Winkler
parent 377f02714d
commit a6e912854a
10 changed files with 52 additions and 5 deletions

View File

@@ -21,6 +21,11 @@ SCM_THEME_PROMPT_STAGED_COLOR=30
SCM_THEME_PROMPT_UNSTAGED_COLOR=92
SCM_THEME_PROMPT_COLOR=${SCM_THEME_PROMPT_CLEAN_COLOR}
NVM_THEME_PROMPT_PREFIX=""
NVM_THEME_PROMPT_SUFFIX=""
NODE_CHAR=${POWERLINE_NODE_CHAR:="n "}
NODE_THEME_PROMPT_COLOR=22
RVM_THEME_PROMPT_PREFIX=""
RVM_THEME_PROMPT_SUFFIX=""
RBENV_THEME_PROMPT_PREFIX=""
@@ -52,6 +57,6 @@ IN_VIM_THEME_PROMPT_TEXT="vim"
HOST_THEME_PROMPT_COLOR=0
POWERLINE_PROMPT=${POWERLINE_PROMPT:="user_info scm python_venv ruby cwd"}
POWERLINE_PROMPT=${POWERLINE_PROMPT:="user_info scm python_venv ruby node cwd"}
safe_append_prompt_command __powerline_prompt_command
safe_append_prompt_command __powerline_prompt_command