From 431ef224e0c776a776806fe056070eae0bf57853 Mon Sep 17 00:00:00 2001 From: Vincent Driessen Date: Wed, 2 Jan 2013 08:16:41 +0100 Subject: [PATCH] Remove origin/HEAD lines from __fish_git_branches. Related discussion: http://stackoverflow.com/questions/354312/why-is-origin-head-shown-when-running-git-branch-r --- share/completions/git.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/completions/git.fish b/share/completions/git.fish index 5b21f7ef2..6a316b2c0 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -1,7 +1,7 @@ # fish completion for git function __fish_git_branches - git branch --no-color -a 2>/dev/null | sed 's/^..//; s/^remotes\///' + git branch --no-color -a ^/dev/null | grep -v ' -> ' | sed -e 's/^..//' -e 's/^remotes\///' end function __fish_git_tags