mirror of
https://github.com/HerrCraziDev/dotfiles.git
synced 2025-12-17 03:06:17 +01:00
Fixed background color on prefix indicator segment
This commit is contained in:
@@ -9,23 +9,24 @@ normal='●'
|
||||
prefix='▲'
|
||||
|
||||
if [ $1 -eq 1 ]; then
|
||||
fore=$cnormal
|
||||
back=$bnormal
|
||||
sym=$normal
|
||||
text="#S"
|
||||
else
|
||||
fore=$cprefix
|
||||
back=$bprefix
|
||||
sym=$prefix
|
||||
text="#[bold]⌥#[unbold]"
|
||||
else
|
||||
fore=$cnormal
|
||||
back=$bnormal
|
||||
sym=$normal
|
||||
text="#S"
|
||||
|
||||
fi
|
||||
|
||||
if [ $(($(date +%s) % 2)) -eq 0 ]; then
|
||||
printf "#[fg=$back,bg=$back] $sym #[fg=$fore]$text "
|
||||
printf "#[fg=$fore,bg=$back] $sym #[fg=$fore]$text #[fg=$back]"
|
||||
else
|
||||
printf "#[fg=$fore,bg=$back] $sym #[fg=$fore]$text "
|
||||
printf "#[fg=$back,bg=$back] $sym #[fg=$fore]$text #[fg=$back]"
|
||||
fi
|
||||
|
||||
|
||||
#printf "#[fg=white,bg=red] $(date +%N) $@"
|
||||
printf "#[fg=white]"
|
||||
#printf "#[fg=white]"
|
||||
|
||||
Reference in New Issue
Block a user