From 8991a46510737e873607f82a377107a99fc63e5c Mon Sep 17 00:00:00 2001 From: Gabe Berke-Williams Date: Mon, 14 Aug 2017 11:13:08 -0700 Subject: [PATCH] Don't show remote branches There are too many of them and they dupe my local branches. --- zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zshrc b/zshrc index d90dee43..617e3ee7 100644 --- a/zshrc +++ b/zshrc @@ -521,7 +521,7 @@ alias gai="git add --interactive" alias gcp="git rev-parse HEAD | xargs echo -n | pbcopy" gc(){ if [[ $# == 0 ]]; then - local branch=$(git branch -a |\ + local branch=$(git branch |\ grep -v HEAD |\ sed -E 's/^\*?[ \t]*//' |\ fzf --reverse --ansi --tac |\