From 83e27e1f93e748adf06f3b68a8a830abb5021dc1 Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Mon, 6 Jun 2016 10:01:15 +0200 Subject: [PATCH] fix bash completion for dockerd with path Signed-off-by: Harald Albers --- contrib/completion/bash/docker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index 3e2d4cc8..20368382 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -2319,7 +2319,7 @@ _docker() { done local binary="${words[0]}" - if [[ $binary == dockerd ]] ; then + if [[ $binary == ?(*/)dockerd ]] ; then # for the dockerd binary, we reuse completion of `docker daemon`. # dockerd does not have subcommands and global options. command=daemon