Pārlūkot izejas kodu

zsh: swap ahead/behind for vcs to match old prompt

Thomas Dy 4 gadi atpakaļ
vecāks
revīzija
7b57e35ba1
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      .zsh/p10k.zsh

+ 1 - 1
.zsh/p10k.zsh

@@ -309,8 +309,8 @@ fi
       meta='@'
     fi
     res+="%f($meta%B%F{magenta}$current%f%b"
-    (( VCS_STATUS_COMMITS_BEHIND )) && res+="v${VCS_STATUS_COMMITS_BEHIND}"
     (( VCS_STATUS_COMMITS_AHEAD  )) && res+="^${VCS_STATUS_COMMITS_AHEAD}"
+    (( VCS_STATUS_COMMITS_BEHIND )) && res+="v${VCS_STATUS_COMMITS_BEHIND}"
     res+="|"
     (( VCS_STATUS_NUM_STAGED     )) && res+="%F{green}+${VCS_STATUS_NUM_STAGED}%f"
     (( VCS_STATUS_NUM_CONFLICTED )) && res+="%F{red}x${VCS_STATUS_NUM_CONFLICTED}%f"