97ec5de7244c419c4ca484f318e15062910247ba
- Author
- cybozuty <ty_c@cybozu.co.jp>
- Committer
- cybozuty <ty_c@cybozu.co.jp>
- Date
Message
Rendering the 'vagrant box (remove|repackage)' completion code independant of Vagrant implementation details.
Diff
1diff --git a/plugins/vagrant/_vagrant b/plugins/vagrant/_vagrant
2index 483b29c53d57186b01ec55d780f8debce0cb5995..b161ba2be2ee5c1cb87119341e0fca44aad52847 100644
3--- a/plugins/vagrant/_vagrant
4+++ b/plugins/vagrant/_vagrant
5@@ -43,7 +43,7 @@ __task_list ()
6
7 __box_list ()
8 {
9- _wanted application expl 'command' compadd $(command ls -1 $HOME/.vagrant/boxes 2>/dev/null| sed -e 's/ /\\ /g')
10+ _wanted application expl 'command' compadd $(command vagrant box list | sed -e 's/ /\\ /g')
11 }
12
13 __vagrant-box ()