mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-01-21 08:41:01 +08:00
4 lines
99 B
Fish
4 lines
99 B
Fish
function git_branch_name
|
|
echo (git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||')
|
|
end
|