From 20ab4e1c25e7fcd62ea7f9e3dbdec2f4c06a9b28 Mon Sep 17 00:00:00 2001 From: Scott Berrevoets Date: Wed, 15 Apr 2015 13:31:32 -0700 Subject: [PATCH] Add bbda for quick branch deletion Add the `gbda` ("git branch delete all") alias for quickly deleting all branches that have been merged into the current branch. --- plugins/git/git.plugin.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh index 9da448814..73016bb64 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -55,6 +55,7 @@ compdef _git gb=git-branch alias gba='git branch -a' compdef _git gba=git-branch alias gbr='git branch --remote' +alias gbda='git branch --merged | grep -v "\*" | xargs -n 1 git branch -d' alias gcount='git shortlog -sn' compdef gcount=git alias gcl='git config --list'