mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-12-01 21:48:52 +08:00
Fix matching for vm names im Vagrant file when using dashes or underscores
This commit is contained in:
1 parent
210b3c1304
commit
4ea8b2548e
1 file changed
+1
-1
+1
-1
@@ -76,7 +76,7 @@ __plugin_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\-]\+\)"\?''\?' | awk '{print $NF}' | sed 's/''//g'|sed 's/\"//g' )
|
||||
}
|
||||
|
||||
__vagrant-box ()
|
||||
|
||||
Reference in new issue
Block a user