From 388c8f8a30522a85030a3e6f3bfad2d2d3d3efba Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Tue, 20 Dec 2016 13:28:46 -0800 Subject: [PATCH] Improve bash completion for bundled plugins 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 246cd5f62e..55b52c0bac 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -262,7 +262,7 @@ __docker_plugins_bundled() { esac done - local plugins=($(__docker_q info | sed -n "/^Plugins/,/^[^ ]/s/ $type: //p")) + local plugins=($(__docker_q info --format "{{range \$i, \$p := .Plugins.$type}}{{.}} {{end}}")) for del in "${remove[@]}" ; do plugins=(${plugins[@]/$del/}) done