mirror of https://github.com/docker/cli.git
fix #23017, add zsh completion for dockerd
Signed-off-by: Ke Xu <leonhartx.k@gmail.com>
This commit is contained in:
parent
6cc83d80e0
commit
903d9013a3
|
@ -1,4 +1,4 @@
|
||||||
#compdef docker
|
#compdef docker dockerd
|
||||||
#
|
#
|
||||||
# zsh completion for docker (http://docker.com)
|
# zsh completion for docker (http://docker.com)
|
||||||
#
|
#
|
||||||
|
@ -1410,6 +1410,13 @@ _docker() {
|
||||||
return ret
|
return ret
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_dockerd() {
|
||||||
|
integer ret=1
|
||||||
|
words[1]='daemon'
|
||||||
|
__docker_subcommand && ret=0
|
||||||
|
return ret
|
||||||
|
}
|
||||||
|
|
||||||
_docker "$@"
|
_docker "$@"
|
||||||
|
|
||||||
# Local Variables:
|
# Local Variables:
|
||||||
|
|
Loading…
Reference in New Issue