From ce569fd8363672d31d36bcad51f9cbd67808956c Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Tue, 3 Jan 2017 05:58:13 -0800 Subject: [PATCH] Support multiple services on bash completion for `docker service ps` Signed-off-by: Harald Albers --- contrib/completion/bash/docker | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index 5469c6c2be..ab662c382a 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -2689,10 +2689,7 @@ _docker_service_ps() { COMPREPLY=( $( compgen -W "--filter -f --help --no-resolve --no-trunc --quiet -q" -- "$cur" ) ) ;; *) - local counter=$(__docker_pos_first_nonflag '--filter|-f') - if [ $cword -eq $counter ]; then - __docker_complete_services - fi + __docker_complete_services ;; esac }