dotfiles/fish/functions/git_parse_branch.fish

4 lines
115 B
Fish
Raw Normal View History

2009-06-10 13:04:31 +10:00
function git_parse_branch
sh -c 'git branch --no-color 2> /dev/null' | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'
end