From 35b42efad3a84a7f0ad3668edf8d79f6c03266f3 Mon Sep 17 00:00:00 2001 From: Paul Seyfert Date: Thu, 4 Mar 2021 22:37:54 +0100 Subject: [PATCH] [completion/zsh] add volume completion This provides completion for `docker run ... -v `. This closes (part of) #1997. Signed-off-by: Paul Seyfert --- contrib/completion/zsh/_docker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/completion/zsh/_docker b/contrib/completion/zsh/_docker index 5a4ad4b6c25e..4326207396a0 100644 --- a/contrib/completion/zsh/_docker +++ b/contrib/completion/zsh/_docker @@ -661,7 +661,7 @@ __docker_container_subcommand() { "($help)*--ulimit=[ulimit options]:ulimit: " "($help)--userns=[Container user namespace]:user namespace:(host)" "($help)--tmpfs[mount tmpfs]" - "($help)*-v[Bind mount a volume]:volume: " + "($help)*-v[Bind mount a volume]:volume:_directories -W / -P '/' -S '\:' -r '/ '" "($help)--volume-driver=[Optional volume driver for the container]:volume driver:(local)" "($help)*--volumes-from=[Mount volumes from the specified container]:volume: " "($help -w --workdir)"{-w=,--workdir=}"[Working directory inside the container]:directory:_directories"