From d4ba61d50b56d1462507bdec102baeaeb731b006 Mon Sep 17 00:00:00 2001 From: Gene Liverman Date: Tue, 31 Jul 2018 10:51:26 -0400 Subject: [PATCH] add gbc to clean up old git branches --- link/nix/zshrc | 1 + 1 file changed, 1 insertion(+) diff --git a/link/nix/zshrc b/link/nix/zshrc index ee2c080..956806b 100644 --- a/link/nix/zshrc +++ b/link/nix/zshrc @@ -80,6 +80,7 @@ export SSH_AUTH_SOCK=~/.gnupg/S.gpg-agent.ssh #alias ll='ls -G -l' #alias ls='ls -G' alias biv='bundle install --path=vendor/bundle' +alias gbc='git branch --merged | command grep -vE "^(\*|\s*(master|develop|production)\s*$)" | command xargs -n 1 git branch -d' alias sal='ssh-add -L' alias sz='source ~/.zshrc' alias st='/Applications/SourceTree.app/Contents/MacOS/SourceTree &'