summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2014-09-01 13:01:36 +0200
committerRobby Russell <robby@planetargon.com>2014-09-01 13:01:36 +0200
commit003f3677dbad8655efa3226e98e49d8e798b4621 (patch)
tree08cd325fb5bad0516395b4a54cc1f6b8db9b1b7d /plugins
parenta796a67c8f7054a9dc4c00294ab2c1665207695a (diff)
parente7fdb028b52505947c7c3eb088586590f5b0b8cd (diff)
downloadzsh-003f3677dbad8655efa3226e98e49d8e798b4621.tar.gz
zsh-003f3677dbad8655efa3226e98e49d8e798b4621.tar.bz2
zsh-003f3677dbad8655efa3226e98e49d8e798b4621.zip
Merge pull request #3070 from stucki/vagrant-vm-list-fix
Improve support for Vagrant VM definitions
Diffstat (limited to 'plugins')
-rw-r--r--plugins/vagrant/_vagrant2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/vagrant/_vagrant b/plugins/vagrant/_vagrant
index 9ddfa1be7..f842b4fbb 100644
--- a/plugins/vagrant/_vagrant
+++ b/plugins/vagrant/_vagrant
@@ -56,7 +56,7 @@ __box_list ()
__vm_list ()
{
- _wanted application expl 'command' compadd $(command grep Vagrantfile -oe '^[^#]*\.vm\.define *:\([a-zA-Z0-9]\+\)' 2>/dev/null | cut -d: -f2)
+ _wanted application expl 'command' compadd $(command grep Vagrantfile -oe '^[^#]*\.vm\.define *[:"]\([a-zA-Z0-9_-]\+\)' 2>/dev/null | awk '{print substr($2, 2)}')
}
__vagrant-box ()