mirror of
https://github.com/IlanCosman/tide.git
synced 2024-09-11 17:15:34 +03:00
Minor edits
This commit is contained in:
parent
1d4861deb8
commit
7418055eb5
@ -6,20 +6,19 @@ function _tide_item_status
|
||||
set_color $tide_status_failure_color
|
||||
printf '%s' $tide_status_failure_icon' ' '1'
|
||||
end
|
||||
return
|
||||
end
|
||||
|
||||
if test $_tide_last_status -eq 0
|
||||
set -g tide_status_bg_color $tide_status_success_bg_color
|
||||
set_color $tide_status_success_color
|
||||
printf '%s' $tide_status_success_icon' '
|
||||
else
|
||||
set -g tide_status_bg_color $tide_status_failure_bg_color
|
||||
set_color $tide_status_failure_color
|
||||
printf '%s' $tide_status_failure_icon' '
|
||||
end
|
||||
if test $_tide_last_status -eq 0
|
||||
set -g tide_status_bg_color $tide_status_success_bg_color
|
||||
set_color $tide_status_success_color
|
||||
printf '%s' $tide_status_success_icon' '
|
||||
else
|
||||
set -g tide_status_bg_color $tide_status_failure_bg_color
|
||||
set_color $tide_status_failure_color
|
||||
printf '%s' $tide_status_failure_icon' '
|
||||
end
|
||||
|
||||
__fish_pipestatus_with_signal (string split ' ' $_tide_last_pipestatus) | string replace 'SIG' '' | string join '|'
|
||||
__fish_pipestatus_with_signal (string split ' ' $_tide_last_pipestatus) | string replace 'SIG' '' | string join '|'
|
||||
end
|
||||
else if test "$tide_status_always_display" = 'true'
|
||||
set -g tide_status_bg_color $tide_status_success_bg_color
|
||||
set_color $tide_status_success_color
|
||||
|
Loading…
Reference in New Issue
Block a user