File tree Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -394,6 +394,27 @@ function hg_prompt_vars() {
394
394
fi
395
395
}
396
396
397
+ function node_command_version_prompt() {
398
+ local node_version
399
+ if _command_exists node; then
400
+ node_version=" $( node --version 2> /dev/null) "
401
+ if [[ -n ${node_version} ]]; then
402
+ echo -e " ${NVM_THEME_PROMPT_PREFIX}${node_version}${NVM_THEME_PROMPT_SUFFIX} "
403
+ fi
404
+ fi
405
+ }
406
+
407
+ function node_version_prompt() {
408
+ local node_version
409
+ node_version=" $( nvm_version_prompt) "
410
+ if [[ -z " ${node_version} " ]]; then
411
+ node_version=" $( node_command_version_prompt) "
412
+ fi
413
+ if [[ -n " ${node_version} " ]]; then
414
+ echo -e " ${node_version} "
415
+ fi
416
+ }
417
+
397
418
function nvm_version_prompt() {
398
419
local node
399
420
if _is_function nvm; then
Original file line number Diff line number Diff line change @@ -45,13 +45,13 @@ NVM_THEME_PROMPT_SUFFIX=""
45
45
NODE_THEME_PROMPT_PREFIX=" "
46
46
NODE_THEME_PROMPT_SUFFIX=" "
47
47
NODE_CHAR=${POWERLINE_NODE_CHAR:= " ❲n❳ " }
48
- NODE_THEME_PROMPT_COLOR=${POWERLINE_NODE_COLOR:= 22 }
48
+ NODE_THEME_PROMPT_COLOR=${POWERLINE_NODE_COLOR:= 28 }
49
49
50
50
RVM_THEME_PROMPT_PREFIX=" "
51
51
RVM_THEME_PROMPT_SUFFIX=" "
52
52
RBENV_THEME_PROMPT_PREFIX=" "
53
53
RBENV_THEME_PROMPT_SUFFIX=" "
54
- RUBY_THEME_PROMPT_COLOR=${POWERLINE_RUBY_COLOR:= 161 }
54
+ RUBY_THEME_PROMPT_COLOR=${POWERLINE_RUBY_COLOR:= 1 }
55
55
RUBY_CHAR=${POWERLINE_RUBY_CHAR:= " ❲r❳ " }
56
56
57
57
TERRAFORM_THEME_PROMPT_COLOR=${POWERLINE_TERRAFORM_COLOR:= 161}
You can’t perform that action at this time.
0 commit comments