fix: git spacing
This commit is contained in:
@@ -152,13 +152,13 @@ _dots_git_info_sync() {
|
|||||||
|
|
||||||
local dirty=""
|
local dirty=""
|
||||||
(( staged )) && dirty+="${_dots_pc[teal]}+${staged}${_dots_pc[reset]}"
|
(( staged )) && dirty+="${_dots_pc[teal]}+${staged}${_dots_pc[reset]}"
|
||||||
(( unstaged )) && dirty+="${_dots_pc[orange]}~${unstaged}${_dots_pc[reset]}"
|
(( unstaged )) && dirty+=" ${_dots_pc[orange]}~${unstaged}${_dots_pc[reset]}"
|
||||||
(( untracked )) && dirty+="${_dots_pc[grey]}?${untracked}${_dots_pc[reset]}"
|
(( untracked )) && dirty+=" ${_dots_pc[grey]}?${untracked}${_dots_pc[reset]}"
|
||||||
[[ -n "$dirty" ]] && info+=" ${dirty}"
|
[[ -n "$dirty" ]] && info+=" ${dirty}"
|
||||||
|
|
||||||
local arrows=""
|
local arrows=""
|
||||||
(( ahead )) && arrows+="${_dots_pc[teal]}↑${ahead}${_dots_pc[reset]}"
|
(( 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}"
|
[[ -n "$arrows" ]] && info+=" ${arrows}"
|
||||||
|
|
||||||
print -r -- "$info"
|
print -r -- "$info"
|
||||||
|
|||||||
Reference in New Issue
Block a user