Fallback bg colors to normal

This commit is contained in:
Ilan Cosman 2020-07-25 18:11:04 -07:00
parent bec4ae97e4
commit 5fe7644620
2 changed files with 6 additions and 0 deletions

View File

@ -27,6 +27,9 @@ function _tide_left_prompt
set -l colorName tide_"$item"_bg_color
set -l color $$colorName
if test -z "$color"
set color normal
end
if set -e lastItemWasNewline || set -e lastItemWasPromptChar
if test "$item" != 'prompt_char'

View File

@ -70,6 +70,9 @@ function _tide_fetch_right_prompt_items
if test -n "$output"
set -l colorName tide_"$item"_bg_color
set -l color $$colorName
if test -z "$color"
set color normal
end
if set -e lastItemWasNewline
set_color $color -b normal