Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
cur-branch.fish
function cur_branch --description "Returns the name of the current git branch"
git rev-parse --abbrev-ref HEAD
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment