From 548758fe31508e7cc65a3e647965a19e5f795085 Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Fri, 28 Jul 2017 15:43:34 +0200 Subject: [PATCH] bash completion for `service ps` supports multiple services 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 66174729d0..53ac4e8dfd 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -3242,10 +3242,7 @@ _docker_service_ps() { COMPREPLY=( $( compgen -W "--filter -f --format --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 }