Show NodeJS version in Powerline themes (#1438)
Currently, only nvm is supported.
This commit is contained in:
committed by
Nils Winkler
parent
377f02714d
commit
a6e912854a
@@ -56,6 +56,7 @@ The contents of both prompt sides can be "reordered", all the "segments" (every
|
||||
* `python_venv` - Python virtual environment information (`virtualenv`, `venv`
|
||||
and `conda` supported)
|
||||
* `ruby` - Current ruby version if using `rvm`
|
||||
* `node` - Current node version (only `nvm` is supported)
|
||||
* `scm` - Version control information, `git`
|
||||
* `user_info` - Current user
|
||||
* `wd` - Working directory, like `cwd` but doesn't show the full folder
|
||||
|
||||
@@ -29,6 +29,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_THEME_PROMPT_COLOR=22
|
||||
NODE_CHAR=${POWERLINE_NODE_CHAR:="❲n❳ "}
|
||||
|
||||
RVM_THEME_PROMPT_PREFIX=""
|
||||
RVM_THEME_PROMPT_SUFFIX=""
|
||||
RBENV_THEME_PROMPT_PREFIX=""
|
||||
@@ -57,7 +62,7 @@ IN_VIM_THEME_PROMPT_TEXT="vim"
|
||||
|
||||
HOST_THEME_PROMPT_COLOR=0
|
||||
|
||||
POWERLINE_LEFT_PROMPT=${POWERLINE_LEFT_PROMPT:="scm python_venv ruby cwd"}
|
||||
POWERLINE_LEFT_PROMPT=${POWERLINE_LEFT_PROMPT:="scm python_venv ruby node cwd"}
|
||||
POWERLINE_RIGHT_PROMPT=${POWERLINE_RIGHT_PROMPT:="in_vim clock battery user_info"}
|
||||
|
||||
safe_append_prompt_command __powerline_prompt_command
|
||||
|
||||
Reference in New Issue
Block a user