From 911ef73ee1777eaa7cac08dadaf77bdd9cc9a2e5 Mon Sep 17 00:00:00 2001 From: Steve Durrheimer Date: Sat, 29 Oct 2016 16:05:57 +0200 Subject: [PATCH] Move zsh completion logic to new subcommand: export 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 81265de9f4..5eebd74719 100644 --- a/contrib/completion/zsh/_docker +++ b/contrib/completion/zsh/_docker @@ -670,7 +670,10 @@ __docker_container_subcommand() { esac ;; (export) - __docker_subcommand && ret=0 + _arguments $(__docker_arguments) \ + $opts_help \ + "($help -o --output)"{-o=,--output=}"[Write to a file, instead of stdout]:output file:_files" \ + "($help -)*:containers:__docker_complete_containers" && ret=0 ;; (inspect) __docker_subcommand && ret=0 @@ -1930,10 +1933,7 @@ __docker_subcommand() { __docker_container_subcommand && ret=0 ;; (export) - _arguments $(__docker_arguments) \ - $opts_help \ - "($help -o --output)"{-o=,--output=}"[Write to a file, instead of stdout]:output file:_files" \ - "($help -)*:containers:__docker_complete_containers" && ret=0 + __docker_container_subcommand && ret=0 ;; (history) _arguments $(__docker_arguments) \