Is there a way to have docker compose run docker-compose in a bash alias?
I know docker is a command of it's own so I don't think you can, I thought I would ask since it drive's me nuts making aliases when I type docker so much.
i already have alias dco=docker-compose but you know, a brother is looking for a better way. :)
alias dco='docker compose'would work.d () { if [[ $1 = com* ]]; then docker compose "${@:2}"; elif ... fi; }, which would let you rund coto rundocker compose.dcolike withdocker-compose, we can add little workaround. First step, find complete config string withcomplete | grep docker-compose. Second, change found string fromcomplete -F _docker_compose docker-composetocomplete -F _docker_compose dcoand save it to the file~/.bash_completion. Now I got any subcommand expand with <Tab> :)