mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-26 01:33:40 +01: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,5 +1,7 @@
|
|||||||
# support Compose v2 as docker CLI plugin
|
# 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 dco="$dccmd"
|
||||||
alias dcb="$dccmd build"
|
alias dcb="$dccmd build"
|
||||||
|
Loading…
Reference in New Issue
Block a user