c1ada7a938268ce39cc83b71bd6d2da0047979db
- Author
- cybozuty <ty_c@cybozu.co.jp>
- Committer
- Phil Eichinger <phil@zankapfel.net>
- 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 9af8cb0368f7ae49f9171f1d4cfb1136ab0aa795..d55ae6709037978f7e133d420e5acb874d2711a7 100644
3--- a/plugins/vagrant/_vagrant
4+++ b/plugins/vagrant/_vagrant
5@@ -44,7 +44,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 __vm_list ()