mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-14 09:50:08 +00:00
fix(docker-compose)!: check for old command instead of calling docker
(#10409)
BREAKING CHANGE: the plugin now checks for the `docker-compose` command instead of trying whether `docker compose` is a valid command. This means that if the old command is still installed it will be used instead. To use `docker compose`, uninstall any old copies of `docker-compose`. Fixes #10409
This commit is contained in:
parent
b60b3f1842
commit
88e72e8a54
1 changed files with 1 additions and 3 deletions
|
@ -1,7 +1,5 @@
|
||||||
# support Compose v2 as docker CLI plugin
|
# support Compose v2 as docker CLI plugin
|
||||||
DOCKER_CONTEXT=default command docker compose &>/dev/null \
|
(( ${+commands[docker-compose]} )) && dccmd='docker-compose' || dccmd='docker compose'
|
||||||
&& dccmd='docker compose' \
|
|
||||||
|| dccmd='docker-compose'
|
|
||||||
|
|
||||||
alias dco="$dccmd"
|
alias dco="$dccmd"
|
||||||
alias dcb="$dccmd build"
|
alias dcb="$dccmd build"
|
||||||
|
|
Loading…
Reference in a new issue