dotfiles/.config/fish/functions/git_current_branch.fish

3 lines
128 B
Fish

function git_current_branch -d 'Detect name of current branch of current git repository'
echo (git branch --show-current)
end