I installed docker-compose, set up auto completion which works as its supposed to. However it does not work on aliases.
Any ideas how to solve this?
For bash just do:
Get the configuration from the official project:
sudo curl -L https://raw.githubusercontent.com/docker/compose/1.23.2/contrib/completion/bash/docker-compose -o /etc/bash_completion.d/docker-compose
Reset the terminal to be sure new configuration are load.
Once the file is installed as before, open it whit your favorite text editor go to the end of file and append your alias to this line:
complete -F _docker_compose docker-compose docker-compose.exe
so after the modification it will be:
complete -F _docker_compose docker-compose docker-compose.exe *yoralias*
NOTE: be careful with the alias you choose, you could use a name of existing command (I.E. dc exist as a command Read here)