mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-02-08 16:28:47 +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
|