fix: git spacing

This commit is contained in:
2025-12-23 13:15:01 +02:00
parent 5968733e07
commit 94fb437570

View File

@@ -152,13 +152,13 @@ _dots_git_info_sync() {
local dirty=""
(( staged )) && dirty+="${_dots_pc[teal]}+${staged}${_dots_pc[reset]}"
(( unstaged )) && dirty+="${_dots_pc[orange]}~${unstaged}${_dots_pc[reset]}"
(( untracked )) && dirty+="${_dots_pc[grey]}?${untracked}${_dots_pc[reset]}"
(( unstaged )) && dirty+=" ${_dots_pc[orange]}~${unstaged}${_dots_pc[reset]}"
(( untracked )) && dirty+=" ${_dots_pc[grey]}?${untracked}${_dots_pc[reset]}"
[[ -n "$dirty" ]] && info+=" ${dirty}"
local arrows=""
(( ahead )) && arrows+="${_dots_pc[teal]}${ahead}${_dots_pc[reset]}"
(( behind )) && arrows+="${_dots_pc[orange]}${behind}${_dots_pc[reset]}"
(( behind )) && arrows+=" ${_dots_pc[orange]}${behind}${_dots_pc[reset]}"
[[ -n "$arrows" ]] && info+=" ${arrows}"
print -r -- "$info"