dotfiles/.config/zsh/autoload/dc

4 lines
182 B
Plaintext
Raw Normal View History

function dc() {
DOCKER_PARAMS="$@"
find . -maxdepth 2 -type f -regextype posix-extended -regex '.*(docker-compose|compose)\.ya?ml' -execdir "docker compose ${DOCKER_PARAMS}" \;
}