Skip to content

Commit

Permalink
Improve bash completion for bundled plugins
Browse files Browse the repository at this point in the history
Signed-off-by: Harald Albers <github@albersweb.de>
  • Loading branch information
albers committed Dec 20, 2016
1 parent b1cb897 commit 9ca56f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/completion/bash/docker
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9ca56f7

Please sign in to comment.