From d37cf22a9ccdf5134247ac3200f80c18f9209321 Mon Sep 17 00:00:00 2001 From: Gibson Fahnestock Date: Sun, 9 Feb 2020 15:43:55 +0100 Subject: show VCS_STATUS_PUSH_COMMITS_{AHEAD,BEHIND} in vcs by default Fixes #395. --- config/p10k-lean-8colors.zsh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'config/p10k-lean-8colors.zsh') diff --git a/config/p10k-lean-8colors.zsh b/config/p10k-lean-8colors.zsh index 8fd3b4f0..e76fa328 100644 --- a/config/p10k-lean-8colors.zsh +++ b/config/p10k-lean-8colors.zsh @@ -415,6 +415,11 @@ # ⇡42 if ahead of the remote; no leading space if also behind the remote: ⇣42⇡42. (( VCS_STATUS_COMMITS_AHEAD && !VCS_STATUS_COMMITS_BEHIND )) && res+=" " (( VCS_STATUS_COMMITS_AHEAD )) && res+="${clean}⇡${VCS_STATUS_COMMITS_AHEAD}" + # ⇠42 if behind the push remote. + (( VCS_STATUS_PUSH_COMMITS_BEHIND )) && res+=" ${clean}⇠${VCS_STATUS_PUSH_COMMITS_BEHIND}" + (( VCS_STATUS_PUSH_COMMITS_AHEAD && !VCS_STATUS_PUSH_COMMITS_BEHIND )) && res+=" " + # ⇢42 if ahead of the push remote; no leading space if also behind: ⇠42⇢42. + (( VCS_STATUS_PUSH_COMMITS_AHEAD )) && res+="${clean}⇢${VCS_STATUS_PUSH_COMMITS_AHEAD}" # *42 if have stashes. (( VCS_STATUS_STASHES )) && res+=" ${clean}*${VCS_STATUS_STASHES}" # 'merge' if the repo is in an unusual state. -- cgit v1.2.3