Skip to content

Instantly share code, notes, and snippets.

@Drowze
Created July 30, 2018 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Drowze/e295a2b5ca7bcc8cd20cc7c8e83c1b18 to your computer and use it in GitHub Desktop.
Save Drowze/e295a2b5ca7bcc8cd20cc7c8e83c1b18 to your computer and use it in GitHub Desktop.
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