Browse Source

Add bash completion for `docker ps --last`

Signed-off-by: Harald Albers <github@albersweb.de>
Harald Albers 9 years ago
parent
commit
dd883b0ce2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      contrib/completion/bash/docker

+ 2 - 2
contrib/completion/bash/docker

@@ -2036,14 +2036,14 @@ _docker_ps() {
 			__docker_nospace
 			return
 			;;
-		--format|-n)
+		--format|--last|-n)
 			return
 			;;
 	esac
 
 	case "$cur" in
 		-*)
-			COMPREPLY=( $( compgen -W "--all -a --filter -f --format --help --latest -l -n --no-trunc --quiet -q --size -s" -- "$cur" ) )
+			COMPREPLY=( $( compgen -W "--all -a --filter -f --format --help --last -n --latest -l --no-trunc --quiet -q --size -s" -- "$cur" ) )
 			;;
 	esac
 }