dotfiles/.config/fish/functions/__sf_util_git_branch.fish
2023-07-16 18:24:42 +02:00

7 lines
149 B
Fish

#
# Git branch
#
function __sf_util_git_branch -d "Display the current branch name"
echo (command git rev-parse --abbrev-ref HEAD 2>/dev/null)
end