From 38dcfad5563ae7e696733f7ceee26d7bc3bac2d3 Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Thu, 27 Apr 2017 10:18:55 +0200 Subject: [PATCH] Add bash completion for `history --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 1a0e110633..a7ea3a330d 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -2299,9 +2299,15 @@ _docker_image_build() { } _docker_image_history() { + case "$prev" in + --format) + return + ;; + esac + case "$cur" in -*) - COMPREPLY=( $( compgen -W "--help --human=false -H=false --no-trunc --quiet -q" -- "$cur" ) ) + COMPREPLY=( $( compgen -W "--format --help --human=false -H=false --no-trunc --quiet -q" -- "$cur" ) ) ;; *) local counter=$(__docker_pos_first_nonflag)