mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-23 18:38:50 +08:00
6 lines
131 B
Fish
6 lines
131 B
Fish
function git_branch_name -d "Get current branch name"
|
|
git_is_repo; and begin
|
|
command git symbolic-ref --short HEAD
|
|
end
|
|
end
|