From 903d9013a30acbea6561debd1b746f94ae0a3788 Mon Sep 17 00:00:00 2001 From: Ke Xu Date: Fri, 17 Jun 2016 16:16:13 +0900 Subject: [PATCH] fix #23017, add zsh completion for dockerd Signed-off-by: Ke Xu --- contrib/completion/zsh/_docker | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/contrib/completion/zsh/_docker b/contrib/completion/zsh/_docker index 69e7dbd3fa..81c628ee79 100644 --- a/contrib/completion/zsh/_docker +++ b/contrib/completion/zsh/_docker @@ -1,4 +1,4 @@ -#compdef docker +#compdef docker dockerd # # zsh completion for docker (http://docker.com) # @@ -1410,6 +1410,13 @@ _docker() { return ret } +_dockerd() { + integer ret=1 + words[1]='daemon' + __docker_subcommand && ret=0 + return ret +} + _docker "$@" # Local Variables: