From b3bb4d45dddc10093f025dd177e1e4b5973d76f9 Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Sun, 24 Jan 2016 06:36:04 -0800 Subject: [PATCH] bash completion for `docker images -f dangling=false` Signed-off-by: Harald Albers --- contrib/completion/bash/docker | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index 3cf39ab987..021828575e 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -1024,10 +1024,8 @@ _docker_history() { _docker_images() { case "$prev" in --filter|-f) - COMPREPLY=( $( compgen -W "dangling=true label=" -- "$cur" ) ) - if [ "$COMPREPLY" = "label=" ]; then - __docker_nospace - fi + COMPREPLY=( $( compgen -S = -W "dangling label" -- "$cur" ) ) + __docker_nospace return ;; --format)