mirror of
https://github.com/IlanCosman/tide.git
synced 2024-09-11 17:15:34 +03:00
Use default name variables for status
This commit is contained in:
parent
dba2550a5f
commit
c8b1683328
@ -7,8 +7,7 @@ function _tide_item_status
|
||||
contains character $tide_left_prompt_items || tide_status_bg_color=$tide_status_bg_color_failure \
|
||||
tide_status_color=$tide_status_color_failure _tide_print_item status $tide_status_icon_failure' ' 1
|
||||
else if test $_tide_last_status = 0
|
||||
tide_status_bg_color=$tide_status_bg_color_success tide_status_color=$tide_status_color_success \
|
||||
_tide_print_item status $tide_status_icon_success' ' \
|
||||
_tide_print_item status $tide_status_icon' ' \
|
||||
(fish_status_to_signal $_tide_last_pipestatus | string replace SIG '' | string join '|')
|
||||
else
|
||||
tide_status_bg_color=$tide_status_bg_color_failure tide_status_color=$tide_status_color_failure \
|
||||
@ -16,7 +15,6 @@ function _tide_item_status
|
||||
(fish_status_to_signal $_tide_last_pipestatus | string replace SIG '' | string join '|')
|
||||
end
|
||||
else if not contains character $tide_left_prompt_items
|
||||
tide_status_bg_color=$tide_status_bg_color_success tide_status_color=$tide_status_color_success \
|
||||
_tide_print_item status $tide_status_icon_success
|
||||
_tide_print_item status $tide_status_icon
|
||||
end
|
||||
end
|
||||
|
@ -74,12 +74,12 @@ tide_shlvl_bg_color 444444
|
||||
tide_shlvl_color d78700
|
||||
tide_shlvl_icon ''
|
||||
tide_shlvl_threshold 1
|
||||
tide_status_bg_color 444444
|
||||
tide_status_bg_color_failure 444444
|
||||
tide_status_bg_color_success 444444
|
||||
tide_status_color $_tide_color_dark_green
|
||||
tide_status_color_failure D70000
|
||||
tide_status_color_success $_tide_color_dark_green
|
||||
tide_status_icon '✔'
|
||||
tide_status_icon_failure '✘'
|
||||
tide_status_icon_success '✔'
|
||||
tide_time_bg_color 444444
|
||||
tide_time_color 5F8787
|
||||
tide_time_format '%T'
|
||||
|
@ -38,10 +38,10 @@ tide_rustc_bg_color black
|
||||
tide_rustc_color cyan
|
||||
tide_shlvl_bg_color black
|
||||
tide_shlvl_color yellow
|
||||
tide_status_bg_color black
|
||||
tide_status_bg_color_failure black
|
||||
tide_status_bg_color_success black
|
||||
tide_status_color green
|
||||
tide_status_color_failure red
|
||||
tide_status_color_success green
|
||||
tide_time_bg_color black
|
||||
tide_time_color brblack
|
||||
tide_vi_mode_bg_color_default black
|
||||
|
@ -74,12 +74,12 @@ tide_shlvl_bg_color normal
|
||||
tide_shlvl_color d78700
|
||||
tide_shlvl_icon ''
|
||||
tide_shlvl_threshold 1
|
||||
tide_status_bg_color normal
|
||||
tide_status_bg_color_failure normal
|
||||
tide_status_bg_color_success normal
|
||||
tide_status_color $_tide_color_dark_green
|
||||
tide_status_color_failure D70000
|
||||
tide_status_color_success $_tide_color_dark_green
|
||||
tide_status_icon '✔'
|
||||
tide_status_icon_failure '✘'
|
||||
tide_status_icon_success '✔'
|
||||
tide_time_bg_color normal
|
||||
tide_time_color 5F8787
|
||||
tide_time_format '%T'
|
||||
|
@ -38,10 +38,10 @@ tide_rustc_bg_color normal
|
||||
tide_rustc_color cyan
|
||||
tide_shlvl_bg_color normal
|
||||
tide_shlvl_color yellow
|
||||
tide_status_bg_color normal
|
||||
tide_status_bg_color_failure normal
|
||||
tide_status_bg_color_success normal
|
||||
tide_status_color green
|
||||
tide_status_color_failure red
|
||||
tide_status_color_success green
|
||||
tide_time_bg_color normal
|
||||
tide_time_color brblack
|
||||
tide_vi_mode_bg_color_default normal
|
||||
|
@ -74,12 +74,12 @@ tide_shlvl_bg_color 808000
|
||||
tide_shlvl_color 000000
|
||||
tide_shlvl_icon ''
|
||||
tide_shlvl_threshold 1
|
||||
tide_status_bg_color 2E3436
|
||||
tide_status_bg_color_failure CC0000
|
||||
tide_status_bg_color_success 2E3436
|
||||
tide_status_color 4E9A06
|
||||
tide_status_color_failure FFFF00
|
||||
tide_status_color_success 4E9A06
|
||||
tide_status_icon '✔'
|
||||
tide_status_icon_failure '✘'
|
||||
tide_status_icon_success '✔'
|
||||
tide_time_bg_color D3D7CF
|
||||
tide_time_color 000000
|
||||
tide_time_format '%T'
|
||||
|
@ -38,10 +38,10 @@ tide_rustc_bg_color yellow
|
||||
tide_rustc_color black
|
||||
tide_shlvl_bg_color yellow
|
||||
tide_shlvl_color black
|
||||
tide_status_bg_color black
|
||||
tide_status_bg_color_failure red
|
||||
tide_status_bg_color_success black
|
||||
tide_status_color green
|
||||
tide_status_color_failure bryellow
|
||||
tide_status_color_success green
|
||||
tide_time_bg_color white
|
||||
tide_time_color black
|
||||
tide_vi_mode_bg_color_default green
|
||||
|
@ -6,7 +6,7 @@ function _status
|
||||
_tide_decolor (_tide_item_status)
|
||||
end
|
||||
|
||||
set -lx tide_status_icon_success '✔'
|
||||
set -lx tide_status_icon '✔'
|
||||
set -lx tide_status_icon_failure '✘'
|
||||
|
||||
# Without character
|
||||
|
Loading…
Reference in New Issue
Block a user