From 978fbdd9dce77e7c81dc85ac78e52cba60787a6c Mon Sep 17 00:00:00 2001 From: Steve Durrheimer Date: Sat, 29 Oct 2016 15:46:56 +0200 Subject: [PATCH] Move zsh completion logic to new subcommand: diff Signed-off-by: Steve Durrheimer --- contrib/completion/zsh/_docker | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/completion/zsh/_docker b/contrib/completion/zsh/_docker index c466653733..4a06985839 100644 --- a/contrib/completion/zsh/_docker +++ b/contrib/completion/zsh/_docker @@ -644,7 +644,9 @@ __docker_container_subcommand() { esac ;; (diff) - __docker_subcommand && ret=0 + _arguments $(__docker_arguments) \ + $opts_help \ + "($help -)*:containers:__docker_complete_containers" && ret=0 ;; (exec) __docker_subcommand && ret=0 @@ -1896,9 +1898,7 @@ __docker_subcommand() { esac ;; (diff) - _arguments $(__docker_arguments) \ - $opts_help \ - "($help -)*:containers:__docker_complete_containers" && ret=0 + __docker_container_subcommand && ret=0 ;; (events) _arguments $(__docker_arguments) \