Bash completion: Honor repository-specific Git alias in alias completion Bash completion: Honor repository-specific Git alias in alias completion bash bash

Bash completion: Honor repository-specific Git alias in alias completion


You shouldn't really use aliases at such complicated cases, use bash functions. Aliases are more like pre-processor in C (in sense of using), when functions are more like... code functions. And I've found that they are also more "auto-completable".

You can also take a look at how this problem is being solved at other shells, like fish.