From de2dd5b3d380cbbe50a2c040e55b94cd4fe2c259 Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Thu, 16 Mar 2017 15:47:01 +0100 Subject: [PATCH] Add bash completion for `--project-directory` Signed-off-by: Harald Albers --- contrib/completion/bash/docker-compose | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contrib/completion/bash/docker-compose b/contrib/completion/bash/docker-compose index 2591f500b..e6e5bd6cd 100644 --- a/contrib/completion/bash/docker-compose +++ b/contrib/completion/bash/docker-compose @@ -160,6 +160,10 @@ _docker_compose_docker_compose() { _filedir "y?(a)ml" return ;; + --project-directory) + _filedir -d + return + ;; $(__docker_compose_to_extglob "$daemon_options_with_args") ) return ;; @@ -554,6 +558,7 @@ _docker_compose() { local daemon_options_with_args=" --file -f --host -H + --project-directory --project-name -p --tlscacert --tlscert