oh-my-fish/lib/git/git_branch_name.fish
2015-08-27 00:20:13 +09:00

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