浏览代码

change mortalscumbag to use core git_current_branch (#6965)

Unknown-Guy 5 年之前
父节点
当前提交
f09fed6195
共有 1 个文件被更改,包括 1 次插入1 次删除
  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