From 4580b6485220d9675818cee8ae83f7dd2a8921d4 Mon Sep 17 00:00:00 2001 From: Ilan Cosman Date: Thu, 13 Jan 2022 22:10:33 -0800 Subject: [PATCH] Add color normal to right prompt --- functions/fish_prompt.fish | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/functions/fish_prompt.fish b/functions/fish_prompt.fish index 4399586..ab95b2b 100644 --- a/functions/fish_prompt.fish +++ b/functions/fish_prompt.fish @@ -10,6 +10,8 @@ source (functions --details _tide_pwd) set -l prompt_var _tide_prompt_$fish_pid set -U $prompt_var # Set var here so if we erase $prompt_var, bg job won't set a uvar +set -l color_normal (set_color normal) + # _tide_repaint prevents us from creating a second background job function _tide_refresh_prompt --on-variable $prompt_var set -g _tide_repaint @@ -52,7 +54,7 @@ CMD_DURATION=\$CMD_DURATION fish_bind_mode=\$fish_bind_mode set $prompt_var (_ti end function fish_right_prompt - string unescape \"\$$prompt_var[1][4]$bot_right_frame\" + string unescape \"\$$prompt_var[1][4]$bot_right_frame$color_normal\" end" else # one line prompt initialization test "$tide_prompt_add_newline_before" = true && set -l add_newline '\0' @@ -77,7 +79,7 @@ CMD_DURATION=\$CMD_DURATION fish_bind_mode=\$fish_bind_mode set $prompt_var (_ti end function fish_right_prompt - string unescape \$$prompt_var[1][2] + string unescape \"\$$prompt_var[1][2]$color_normal\" end" end