mirror of
https://github.com/IlanCosman/tide.git
synced 2024-11-22 23:03:26 +03:00
Minor edits
This commit is contained in:
parent
acf89909f6
commit
be6b2722ff
@ -6,14 +6,12 @@ function _tide_item_cmd_duration
|
||||
|
||||
set_color $tide_cmd_duration_color
|
||||
|
||||
printf '%s' $tide_cmd_duration_icon' '
|
||||
|
||||
if test $hours != 0
|
||||
printf '%s' $hours'h ' $minutes'm ' $seconds's'
|
||||
printf '%s' $tide_cmd_duration_icon' ' $hours'h ' $minutes'm ' $seconds's'
|
||||
else if test $minutes != 0
|
||||
printf '%s' $minutes'm ' $seconds's'
|
||||
printf '%s' $tide_cmd_duration_icon' ' $minutes'm ' $seconds's'
|
||||
else if test $seconds != 0
|
||||
printf '%s' $seconds's'
|
||||
printf '%s' $tide_cmd_duration_icon' ' $seconds's'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -30,10 +30,8 @@ end
|
||||
|
||||
function _tide_title -a text
|
||||
clear
|
||||
|
||||
string repeat --no-newline --count (math --scale=0 "$fake_columns/2" - (string length $text)/2) ' '
|
||||
set_color -o
|
||||
printf '%s\n' $text
|
||||
string pad --width (math --scale=0 "$fake_columns/2" + (string length $text)/2) $text
|
||||
set_color normal
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user