oh-my-fish/plugins/git/git_branch_name.fish

4 lines
99 B
Fish
Raw Normal View History

function git_branch_name
echo (git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||')
end