From 1ce3567307d735e8083071f84885405623827aa4 Mon Sep 17 00:00:00 2001 From: hophacker Date: Wed, 24 Jul 2019 10:50:11 +0800 Subject: [PATCH] use ./docker-compose.yml if it exists for dc --- zsh/functions.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zsh/functions.zsh b/zsh/functions.zsh index 79bc8bd..d5964a7 100644 --- a/zsh/functions.zsh +++ b/zsh/functions.zsh @@ -271,6 +271,8 @@ function rgm { function dc { if [ -e ./docker-compose-dev.yml ]; then docker_file_path=./docker-compose-dev.yml + elif [ -e ./docker-compose.yml ]; then + docker_file_path=./docker-compose.yml else docker_file_path=~/Projects/paiyou-hub/docker-compose-dev.yml fi