mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-25 22:00:15 +08:00
fix(docker-compose): fix test for docker-compose
executable (#12555)
This commit is contained in:
parent
fd8f72b276
commit
4146c6be21
@ -1,5 +1,8 @@
|
||||
# support Compose v2 as docker CLI plugin
|
||||
(( ${+commands[docker-compose]} )) && dccmd='docker-compose' || dccmd='docker compose'
|
||||
# Support Compose v2 as docker CLI plugin
|
||||
#
|
||||
# This tests that the (old) docker-compose command is in $PATH and that
|
||||
# it resolves to an existing executable file if it's a symlink.
|
||||
[[ -x "${commands[docker-compose]:A}" ]] && dccmd='docker-compose' || dccmd='docker compose'
|
||||
|
||||
alias dco="$dccmd"
|
||||
alias dcb="$dccmd build"
|
||||
|
Loading…
Reference in New Issue
Block a user