514693125b12d4b4cd099dcb09174f7bfd9a5b0e

Author
r3dDoX <r3dDoX@users.noreply.github.com>
Committer
r3dDoX <r3dDoX@users.noreply.github.com>
Date

Message

added prefix/suffix variable for customizability

Diff

 1diff --git a/lib/git.zsh b/lib/git.zsh
 2index d6cee37c3cca5ffbdb1e5f72e0e3ea563c99ffb1..a52f82de03777f61e6221a4b3b32f2abfebdf1c8 100644
 3--- a/lib/git.zsh
 4+++ b/lib/git.zsh
 5@@ -62,7 +62,8 @@ function git_prompt_ahead() {
 6 # Gets the number of commits ahead from remote
 7 function git_commits_ahead() {
 8   if $(echo "$(command git log @{upstream}..HEAD 2> /dev/null)" | grep '^commit' &> /dev/null); then
 9-    echo "$(command git log @{upstream}..HEAD | grep '^commit' | wc -l | tr -d ' ')"
10+    COMMITS=$(command git log @{upstream}..HEAD | grep '^commit' | wc -l | tr -d ' ')
11+    echo "$ZSH_THEME_GIT_COMMITS_AHEAD_PREFIX$COMMITS$ZSH_THEME_GIT_COMMITS_AHEAD_SUFFIX"
12   fi
13 }
14