mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 01:58:31 +08:00
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
This commit is contained in:
parent
600aeb6ccc
commit
431ef224e0
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user