mirror of
https://github.com/IlanCosman/tide.git
synced 2024-11-23 08:46:51 +03:00
Fallback bg colors to normal
This commit is contained in:
parent
bec4ae97e4
commit
5fe7644620
@ -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'
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user