How can I get bash to perform tab-completion for my aliases?
- by dstarh
I have a bunch of bash completion scripts set up (mostly using bash-it and some manually setup).
I also have a bunch of aliases setup for common tasks like gco for git checkout. Right now I can type git checkout dTab and develop is completed for me but when I type gco dTab it does not complete.
I'm assuming this is because the completion script is completing on git and it fails to see gco.
Is there a way to generically/programmatically get all of my completion scripts to work with my aliases? Not being able to complete when using the alias kind of defeats the purpose of the alias.