mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-12 08:50:08 +00:00
fix(docker-compose): fix for slow docker compose
call on remote Docker contexts (#10264)
Fixes #10264 Co-authored-by: Frederick Zhang <frederick888@tsundere.moe>
This commit is contained in:
parent
f793baf370
commit
49bc55f966
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
# support Compose v2 as docker CLI plugin
|
||||
command docker compose &>/dev/null && dccmd='docker compose' || dccmd='docker-compose'
|
||||
DOCKER_CONTEXT=default command docker compose &>/dev/null \
|
||||
&& dccmd='docker compose' \
|
||||
|| dccmd='docker-compose'
|
||||
|
||||
alias dco="$dccmd"
|
||||
alias dcb="$dccmd build"
|
||||
|
|
Loading…
Reference in a new issue