Browse Source

change mortalscumbag to use core git_current_branch (#6965)

Unknown-Guy 5 years ago
parent
commit
f09fed6195
1 changed files with 1 additions and 1 deletions
  1. 1 1
      themes/mortalscumbag.zsh-theme

+ 1 - 1
themes/mortalscumbag.zsh-theme

@@ -10,7 +10,7 @@ function my_git_prompt() {
   fi
 
   # is branch behind?
-  if $(echo "$(git log HEAD..origin/$(current_branch) 2> /dev/null)" | grep '^commit' &> /dev/null); then
+  if $(echo "$(git log HEAD..origin/$(git_current_branch) 2> /dev/null)" | grep '^commit' &> /dev/null); then
     STATUS="$STATUS$ZSH_THEME_GIT_PROMPT_BEHIND"
   fi