diff options
| author | Dawid Ferenczy <dawid@ferenczy.cz> | 2015-08-25 16:34:04 +0200 | 
|---|---|---|
| committer | Dawid Ferenczy <dawid@ferenczy.cz> | 2015-08-25 16:34:04 +0200 | 
| commit | 18ef1ee6481dbeca4fbecf3de627f946860ffd5a (patch) | |
| tree | cb07e72538c470bb486596d955c7912c5b05e23e /plugins/vagrant/_vagrant | |
| parent | eafd5f325208421b82a770e57441dd1063eb5745 (diff) | |
| parent | 192de6bcffb0294e19f4203f6f7dc1a7f3e427be (diff) | |
| download | zsh-18ef1ee6481dbeca4fbecf3de627f946860ffd5a.tar.gz zsh-18ef1ee6481dbeca4fbecf3de627f946860ffd5a.tar.bz2 zsh-18ef1ee6481dbeca4fbecf3de627f946860ffd5a.zip  | |
Merge remote-tracking branch 'robbyrussell/master'
Diffstat (limited to 'plugins/vagrant/_vagrant')
| -rw-r--r-- | plugins/vagrant/_vagrant | 16 | 
1 files changed, 12 insertions, 4 deletions
diff --git a/plugins/vagrant/_vagrant b/plugins/vagrant/_vagrant index d55ae6709..76f80b0d7 100644 --- a/plugins/vagrant/_vagrant +++ b/plugins/vagrant/_vagrant @@ -6,19 +6,26 @@  local -a _1st_arguments  _1st_arguments=(      'box:Box commands' +    'connect:Connects to a shared, remote Vagrant environment'      'destroy:Destroys the vagrant environment' +    'docker-logs:Shows Docker logs' +    'docker-run:Run one-off commands against a Docker container' +    'global-status:Reports the status of all active Vagrant environments on the system'      'halt:Halts the currently running vagrant environment'      'init:[box_name] [box_url] Initializes current folder for Vagrant usage' +    'login:Authenticates against a Vagrant Cloud server to access protected boxes'      'package:Packages a vagrant environment for distribution'      'plugin:Plugin commands'      'provision:Run the provisioner'      'reload:Reload the vagrant environment'      'resume:Resumes a suspend vagrant environment' +    'share:Shares the Vagrant environment and allows remote access'      'ssh:SSH into the currently running environment' -    'ssh-config:outputs .ssh/config valid syntax for connecting to this environment via ssh.' -    'status:Shows the status of the current Vagrant environment.' +    'ssh-config:outputs .ssh/config valid syntax for connecting to this environment via ssh' +    'status:Shows the status of the current Vagrant environment'      'suspend:Suspends the currently running vagrant environment'      'up:Creates the vagrant environment' +    'version:Prints the currently installed Vagrant version and checks for new updates'      '--help:[TASK] Describe available tasks or one specific task'      '--version:Prints the Vagrant version information'  ) @@ -49,7 +56,8 @@ __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)}') +    _wanted application expl 'command' compadd $(command ls .vagrant/machines/ 2>/dev/null)  }  __vagrant-box () @@ -105,7 +113,7 @@ case $state in        (box)            __vagrant-box        ;; -      (up|provision|package|destroy|reload|ssh|halt|resume|status) +      (up|provision|package|destroy|reload|ssh|ssh-config|halt|resume|status)  	_arguments ':feature:__vm_list'      esac    ;;  | 
