oh-my-fish/plugins/git/git_branch_name.fish
2012-07-23 20:33:18 -03:00

4 lines
99 B
Fish

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