0
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-09-19 04:01:21 +02: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:
Marc Cornellà 2021-10-05 13:23:05 +02:00
parent f793baf370
commit 49bc55f966
No known key found for this signature in database
GPG key ID: 0314585E776A9C1B

View file

@ -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"