Skip to content

Commit

Permalink
Merge pull request moby#29606 from albers/completion-plugins-bundled
Browse files Browse the repository at this point in the history
Improve bash completion for bundled plugins
  • Loading branch information
cpuguy83 authored Dec 21, 2016
2 parents 0525a5d + 9ca56f7 commit 76b4f5a
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 76b4f5a

Please sign in to comment.