Check for color_nvm and set color_node based on that

This commit is contained in:
wesbaker 2021-01-23 16:38:49 -05:00
parent b43a458b1e
commit 0ec2e06261
2 changed files with 6 additions and 0 deletions

View File

@ -21,6 +21,9 @@ function fish_mode_prompt -d 'bobthefish-optimized fish mode indicator'
type -q bobthefish_colors
and bobthefish_colors
[ -n "$color_nvm" ]
and set -x color_node $color_nvm
set_color normal # clear out anything bold or underline...
switch $fish_bind_mode

View File

@ -1115,6 +1115,9 @@ function fish_prompt -d 'bobthefish, a fish theme optimized for awesome'
type -q bobthefish_colors
and bobthefish_colors
[ -n "$color_nvm" ]
and set -x color_node $color_nvm
# Start each line with a blank slate
set -l __bobthefish_current_bg