dotfiles/fish/functions/git_parse_branch.fish

4 lines
115 B
Fish
Executable File

function git_parse_branch
sh -c 'git branch --no-color 2> /dev/null' | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'
end