From 0ec2e06261ce3fae962f7be00f191ddd96739939 Mon Sep 17 00:00:00 2001 From: wesbaker Date: Sat, 23 Jan 2021 16:38:49 -0500 Subject: [PATCH] Check for color_nvm and set color_node based on that --- functions/fish_mode_prompt.fish | 3 +++ functions/fish_prompt.fish | 3 +++ 2 files changed, 6 insertions(+) diff --git a/functions/fish_mode_prompt.fish b/functions/fish_mode_prompt.fish index efb3c62..80c9052 100644 --- a/functions/fish_mode_prompt.fish +++ b/functions/fish_mode_prompt.fish @@ -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 diff --git a/functions/fish_prompt.fish b/functions/fish_prompt.fish index d4ef76a..a0d9efb 100644 --- a/functions/fish_prompt.fish +++ b/functions/fish_prompt.fish @@ -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