浏览代码

Fix gbda alias to support `color.ui = always` + exclude dev branches (#4304)

* Fix gbda alias to support git config color.ui = always
* Update gbda alias to exclude develop and dev branches
Cédric Malard 8 年之前
父节点
当前提交
f5537241a4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/git/git.plugin.zsh

+ 1 - 1
plugins/git/git.plugin.zsh

@@ -46,7 +46,7 @@ alias gapa='git add --patch'
 
 alias gb='git branch'
 alias gba='git branch -a'
-alias gbda='git branch --merged | command grep -vE "^(\*|\s*master\s*$)" | command xargs -n 1 git branch -d'
+alias gbda='git branch --no-color --merged | command grep -vE "^(\*|\s*(master|develop|dev)\s*$)" | command xargs -n 1 git branch -d'
 alias gbl='git blame -b -w'
 alias gbnm='git branch --no-merged'
 alias gbr='git branch --remote'