From d3274f9217371848f1aa37baaf80e203eed8a7c6 Mon Sep 17 00:00:00 2001 From: Steve Durrheimer Date: Fri, 29 Apr 2016 22:39:38 +0200 Subject: [PATCH] Add zsh completion for 'docker network ls -f driver' Signed-off-by: Steve Durrheimer --- contrib/completion/zsh/_docker | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contrib/completion/zsh/_docker b/contrib/completion/zsh/_docker index 5d128293cc..53aa4371cf 100644 --- a/contrib/completion/zsh/_docker +++ b/contrib/completion/zsh/_docker @@ -317,6 +317,9 @@ __docker_network_complete_ls_filters() { if compset -P '*='; then case "${${words[-1]%=*}#*=}" in + (driver) + __docker_plugins Network && ret=0 + ;; (id) __docker_networks_ids && ret=0 ;; @@ -332,7 +335,7 @@ __docker_network_complete_ls_filters() { ;; esac else - opts=('id' 'name' 'type') + opts=('driver' 'id' 'name' 'type') _describe -t filter-opts "Filter Options" opts -qS "=" && ret=0 fi