Use default name variables for character

This commit is contained in:
Ilan Cosman 2021-07-06 15:45:12 -07:00
parent c8b1683328
commit 67b1e76da3
8 changed files with 9 additions and 13 deletions

View File

@ -1,10 +1,6 @@
function _tide_item_character
if test $_tide_last_status = 0
set -g tide_character_color $tide_character_color_success
else
set -g tide_character_color $tide_character_color_failure
end
test $_tide_last_status = 0 || set -g tide_character_color $tide_character_color_failure
if test "$fish_key_bindings" = fish_default_key_bindings
_tide_print_item character $tide_character_icon
else

View File

@ -1,6 +1,6 @@
tide_character_bg_color normal
tide_character_color_failure FF0000
tide_character_color_success $_tide_color_green
tide_character_color $_tide_color_green
tide_character_icon ''
tide_character_vi_icon_default ''
tide_character_vi_icon_replace '▶'

View File

@ -1,6 +1,6 @@
tide_character_bg_color normal
tide_character_color_failure brred
tide_character_color_success brgreen
tide_character_color brgreen
tide_chruby_bg_color black
tide_chruby_color red
tide_cmd_duration_bg_color black

View File

@ -1,6 +1,6 @@
tide_character_bg_color normal
tide_character_color_failure FF0000
tide_character_color_success $_tide_color_green
tide_character_color $_tide_color_green
tide_character_icon ''
tide_character_vi_icon_default ''
tide_character_vi_icon_replace '▶'

View File

@ -1,6 +1,6 @@
tide_character_bg_color normal
tide_character_color_failure brred
tide_character_color_success brgreen
tide_character_color brgreen
tide_chruby_bg_color normal
tide_chruby_color red
tide_cmd_duration_bg_color normal

View File

@ -1,6 +1,6 @@
tide_character_bg_color normal
tide_character_color_failure FF0000
tide_character_color_success $_tide_color_green
tide_character_color $_tide_color_green
tide_character_icon ''
tide_character_vi_icon_default ''
tide_character_vi_icon_replace '▶'

View File

@ -1,6 +1,6 @@
tide_character_bg_color normal
tide_character_color_failure brred
tide_character_color_success brgreen
tide_character_color brgreen
tide_chruby_bg_color red
tide_chruby_color black
tide_cmd_duration_bg_color yellow

View File

@ -1,3 +1,3 @@
function _fake_tide_item_character
fake_tide_character_color=$fake_tide_character_color_success _fake_tide_print_item character ' '
_fake_tide_print_item character ' '
end