From f1cef9c7ab4847bd46da6a65694537c4ff9e7000 Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Wed, 1 Feb 2017 18:44:12 +0100 Subject: [PATCH] Add bash completion for `docker ps --filter expose|publish` Signed-off-by: Harald Albers --- contrib/completion/bash/docker | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index a649b88147..9054a7c9d9 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -1286,6 +1286,9 @@ _docker_container_ls() { __docker_complete_containers_all --cur "${cur##*=}" return ;; + expose|publish) + return + ;; id) __docker_complete_containers_all --cur "${cur##*=}" --id return @@ -1322,7 +1325,7 @@ _docker_container_ls() { case "$prev" in --filter|-f) - COMPREPLY=( $( compgen -S = -W "ancestor before exited health id is-task label name network since status volume" -- "$cur" ) ) + COMPREPLY=( $( compgen -S = -W "ancestor before exited expose health id is-task label name network publish since status volume" -- "$cur" ) ) __docker_nospace return ;;