Browse Source

bash completion for `docker images -f dangling=false`

Signed-off-by: Harald Albers <github@albersweb.de>
Harald Albers 9 năm trước cách đây
mục cha
commit
7f345f2ec4
1 tập tin đã thay đổi với 2 bổ sung4 xóa
  1. 2 4
      contrib/completion/bash/docker

+ 2 - 4
contrib/completion/bash/docker

@@ -1024,10 +1024,8 @@ _docker_history() {
 _docker_images() {
 _docker_images() {
 	case "$prev" in
 	case "$prev" in
 		--filter|-f)
 		--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
 			return
 			;;
 			;;
                 --format)
                 --format)