Skip to content

Instantly share code, notes, and snippets.

@efatsi
Created September 18, 2012 17:54
Show Gist options
  • Save efatsi/3744646 to your computer and use it in GitHub Desktop.
Save efatsi/3744646 to your computer and use it in GitHub Desktop.
Git completion with aliases
######## git_completion.bash ########
complete -o bashdefault -o default -o nospace -F _git git 2>/dev/null \
|| complete -o default -o nospace -F _git git
## Just add this line
complete -o bashdefault -o default -o nospace -F _git_checkout gch 2>/dev/null \
|| complete -o default -o nospace -F _git_checkout gch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment