From 8121d5a885488ce72db4ac3be2a31cff1a639631 Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Wed, 21 Sep 2016 20:19:14 +0200 Subject: [PATCH] Add bash completion for `docker stats --format` Signed-off-by: Harald Albers --- contrib/completion/bash/docker | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index 39b7863300..18b8080c35 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -2669,9 +2669,15 @@ _docker_start() { } _docker_stats() { + case "$prev" in + --format) + return + ;; + esac + case "$cur" in -*) - COMPREPLY=( $( compgen -W "--all -a --help --no-stream" -- "$cur" ) ) + COMPREPLY=( $( compgen -W "--all -a --format --help --no-stream" -- "$cur" ) ) ;; *) __docker_complete_containers_running