From 64ea2f57e8b321155f6f7d09edff3e0e0f31f30d Mon Sep 17 00:00:00 2001 From: Steve Durrheimer Date: Sun, 30 Oct 2016 16:51:53 +0100 Subject: [PATCH] Move zsh completion logic to new subcommand: port Signed-off-by: Steve Durrheimer --- contrib/completion/zsh/_docker | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/contrib/completion/zsh/_docker b/contrib/completion/zsh/_docker index 361ade355a..a65e5f786f 100644 --- a/contrib/completion/zsh/_docker +++ b/contrib/completion/zsh/_docker @@ -718,7 +718,10 @@ __docker_container_subcommand() { "($help -)*:containers:__docker_complete_running_containers" && ret=0 ;; (port) - __docker_subcommand && ret=0 + _arguments $(__docker_arguments) \ + $opts_help \ + "($help -)1:containers:__docker_complete_running_containers" \ + "($help -)2:port:_ports" && ret=0 ;; (prune) # @TODO @@ -2096,10 +2099,7 @@ __docker_subcommand() { esac ;; (port) - _arguments $(__docker_arguments) \ - $opts_help \ - "($help -)1:containers:__docker_complete_running_containers" \ - "($help -)2:port:_ports" && ret=0 + __docker_container_subcommand && ret=0 ;; (ps) words[1]='ls'