Add bash completion for `docker ps --last`

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2016-07-03 10:36:34 -07:00 committed by Tibor Vass
parent fac7c67349
commit ec37a0b192
1 changed files with 2 additions and 2 deletions

View File

@ -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
}