From 7b4e2f3145433f94fcb2c3e78c480422cdb9ff6d Mon Sep 17 00:00:00 2001 From: Ace-Tang Date: Fri, 3 Aug 2018 21:13:46 +0800 Subject: [PATCH] bash completion: fix uncorrect completion fix uncorrect completion for command docker docker Signed-off-by: Ace-Tang --- contrib/completion/bash/docker | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index e31467077c..c7645397ef 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -5117,6 +5117,9 @@ _docker() { local counter=1 while [ "$counter" -lt "$cword" ]; do case "${words[$counter]}" in + docker) + return 0 + ;; # save host so that completion can use custom daemon --host|-H) (( counter++ ))