From ec37a0b19255a293881b33b264b66e59897fc8b6 Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Sun, 3 Jul 2016 10:36:34 -0700 Subject: [PATCH] Add bash completion for `docker ps --last` Signed-off-by: Harald Albers --- contrib/completion/bash/docker | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index 272ee41701..7c8f6db1b3 100644 --- a/contrib/completion/bash/docker +++ b/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 }