From 60bd1f5f063cf4ac9c17f03616b75d3aebbdc086 Mon Sep 17 00:00:00 2001 From: wesbaker Date: Sat, 23 Jan 2021 16:42:56 -0500 Subject: [PATCH] Only look for color_nvm in the __bobthefish_prompt_node function --- functions/fish_prompt.fish | 3 +++ 1 file changed, 3 insertions(+) diff --git a/functions/fish_prompt.fish b/functions/fish_prompt.fish index d4ef76a..a37fae6 100644 --- a/functions/fish_prompt.fish +++ b/functions/fish_prompt.fish @@ -918,6 +918,9 @@ function __bobthefish_prompt_node -S -d 'Display current node version' [ -z $node_version -o "$node_version" = 'none' -o "$node_version" = 'system' ] and return + [ -n "$color_nvm" ] + and set -x color_node $color_nvm + __bobthefish_start_segment $color_node echo -ns $node_glyph $node_version ' ' set_color normal