Browse Source

Add docker ps --filter=… image completion

I missed that on #15919, thanks @albers

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Vincent Demeester 10 years ago
parent
commit
6ae2cb7ad1
1 changed files with 5 additions and 0 deletions
  1. 5 0
      contrib/completion/bash/docker

+ 5 - 0
contrib/completion/bash/docker

@@ -975,6 +975,11 @@ _docker_ps() {
 	esac
 	esac
 
 
 	case "${words[$cword-2]}$prev=" in
 	case "${words[$cword-2]}$prev=" in
+		*ancestor=*)
+			cur="${cur#=}"
+			__docker_images
+			return
+			;;
 		*id=*)
 		*id=*)
 			cur="${cur#=}"
 			cur="${cur#=}"
 			__docker_container_ids
 			__docker_container_ids