mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
fix(docker-compose): Reliable docker-compose binary check (#12553)
This commit is contained in:
parent
fd8f72b276
commit
d726fa1154
1 changed files with 1 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
# support Compose v2 as docker CLI plugin
|
||||
(( ${+commands[docker-compose]} )) && dccmd='docker-compose' || dccmd='docker compose'
|
||||
[[ -x "$(command -v docker-compose)" ]] && dccmd='docker-compose' || dccmd='docker compose'
|
||||
|
||||
alias dco="$dccmd"
|
||||
alias dcb="$dccmd build"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue