diff options
author | Vincent Driessen <vincent@3rdcloud.com> | 2013-01-02 08:16:41 +0100 |
---|---|---|
committer | Vincent Driessen <vincent@3rdcloud.com> | 2013-01-02 08:16:42 +0100 |
commit | 431ef224e0c776a776806fe056070eae0bf57853 (patch) | |
tree | 680cb71971f2380f14c4b84aa630f5ac5c048b7d /share | |
parent | 600aeb6ccc8f1d93a4e65d8593c29fb02c108c08 (diff) |
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
Diffstat (limited to 'share')
-rw-r--r-- | share/completions/git.fish | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/completions/git.fish b/share/completions/git.fish index 5b21f7ef..6a316b2c 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 |