summaryrefslogtreecommitdiff
path: root/.config/fisher/github.com/matchai/spacefish/functions/__sf_util_git_branch.fish
blob: 8be99f61f57a22db05fef1dfb6b87b52aa2967a3 (plain)
1
2
3
4
5
6
7
#
# 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