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
@@ -40,6 +40,13 @@ function __powerline_user_info_prompt {
|
||||
[[ -n "${user_info}" ]] && echo "${user_info}|${color}"
|
||||
}
|
||||
|
||||
function __powerline_node_prompt {
|
||||
local node_version=""
|
||||
|
||||
node_version="$(node_version_prompt)"
|
||||
[[ -n "${node_version}" ]] && echo "${NODE_CHAR}${node_version}|${NODE_THEME_PROMPT_COLOR}"
|
||||
}
|
||||
|
||||
function __powerline_ruby_prompt {
|
||||
local ruby_version=""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user