From c465ba7bdef09ddb06176c8a5f6b787c8e03b402 Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Mon, 10 Aug 2015 06:45:05 -0700 Subject: [PATCH] Add `docker ps --format` to bash completion 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 2cba086fef..28123ae731 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -869,7 +869,7 @@ _docker_ps() { compopt -o nospace return ;; - -n) + --format|-n) return ;; esac @@ -893,7 +893,7 @@ _docker_ps() { case "$cur" in -*) - COMPREPLY=( $( compgen -W "--all -a --before --filter -f --help --latest -l -n --no-trunc --quiet -q --size -s --since" -- "$cur" ) ) + COMPREPLY=( $( compgen -W "--all -a --before --filter -f --format --help --latest -l -n --no-trunc --quiet -q --size -s --since" -- "$cur" ) ) ;; esac }