Skip to content

Commit

Permalink
fix(docker-compose): fix for slow docker compose call on remote Doc…
Browse files Browse the repository at this point in the history
…ker contexts (ohmyzsh#10264)

Fixes ohmyzsh#10264

Co-authored-by: Frederick Zhang <frederick888@tsundere.moe>
  • Loading branch information
2 people authored and kareefardi committed Oct 27, 2021
1 parent 85f86aa commit dcbc30b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/docker-compose/docker-compose.plugin.zsh
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit dcbc30b

Please sign in to comment.