From 455b7bcbabd4eb7e440448b5834f626cb08c69e0 Mon Sep 17 00:00:00 2001 From: Steve Durrheimer Date: Tue, 3 Jan 2017 14:46:37 +0100 Subject: [PATCH] Add zsh completion for 'docker plugin install --alias' Signed-off-by: Steve Durrheimer --- contrib/completion/zsh/_docker | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/contrib/completion/zsh/_docker b/contrib/completion/zsh/_docker index 2b7e822e36..56821fb05a 100644 --- a/contrib/completion/zsh/_docker +++ b/contrib/completion/zsh/_docker @@ -1497,11 +1497,17 @@ __docker_plugin_subcommand() { opts_help=("(: -)--help[Print usage]") case "$words[1]" in - (disable|enable|inspect|install|ls|push|rm) + (disable|enable|inspect|ls|push|rm) _arguments $(__docker_arguments) \ $opts_help \ "($help -)1:plugin:__docker_complete_plugins" && ret=0 ;; + (install) + _arguments $(__docker_arguments) \ + $opts_help \ + "($help)--alias=[Local name for plugin]:alias: " \ + "($help -)1:plugin:__docker_complete_plugins" && ret=0 + ;; (set) _arguments $(__docker_arguments) \ $opts_help \