浏览代码

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

Signed-off-by: Harald Albers <github@albersweb.de>
Harald Albers 9 年之前
父节点
当前提交
7f345f2ec4
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      contrib/completion/bash/docker

+ 2 - 4
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)