Skip to content

Instantly share code, notes, and snippets.

@mppatterson
Created October 10, 2014 21:17
Show Gist options
  • Save mppatterson/bc57b33d659df60974b1 to your computer and use it in GitHub Desktop.
Save mppatterson/bc57b33d659df60974b1 to your computer and use it in GitHub Desktop.
Git alias with autocomplete
# Alias 'g' to 'git' and provide autocomplete functionality.
alias g='git'
complete -o bashdefault -o default -o nospace -F _git g 2>/dev/null || complete -o default -o nospace -F _git g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment