Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
64976138
Commit
64976138
authored
Dec 31, 2018
by
Andrew Imeson
Committed by
Robby Russell
Dec 31, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new vagrant commands (#7455)
* vagrant: Add `cloud` subcommand to completion * vagrant: Add `port` subcommand to completion * vagrant: Add `validate` subcommand to completion
parent
e0ee79f2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
_vagrant
plugins/vagrant/_vagrant
+5
-2
No files found.
plugins/vagrant/_vagrant
View file @
64976138
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
local -a _1st_arguments
local -a _1st_arguments
_1st_arguments=(
_1st_arguments=(
'box:Box commands'
'box:Box commands'
'cloud:Manages everything related to Vagrant Cloud'
'connect:Connects to a remotely shared Vagrant environment'
'connect:Connects to a remotely shared Vagrant environment'
'destroy:Destroys the vagrant environment'
'destroy:Destroys the vagrant environment'
'docker-logs:Outputs the logs from the Docker container'
'docker-logs:Outputs the logs from the Docker container'
...
@@ -18,6 +19,7 @@ _1st_arguments=(
...
@@ -18,6 +19,7 @@ _1st_arguments=(
'login:Authenticates against a Vagrant Cloud server to access protected boxes'
'login:Authenticates against a Vagrant Cloud server to access protected boxes'
'package:Packages a vagrant environment for distribution'
'package:Packages a vagrant environment for distribution'
'plugin:Plugin commands'
'plugin:Plugin commands'
'port:Displays information about guest port mappings'
'provision:Run the provisioner'
'provision:Run the provisioner'
'push:Deploys code in this environment to a configured destination'
'push:Deploys code in this environment to a configured destination'
'rdp:Connects to machine via RDP'
'rdp:Connects to machine via RDP'
...
@@ -33,6 +35,7 @@ _1st_arguments=(
...
@@ -33,6 +35,7 @@ _1st_arguments=(
'suspend:Suspends the currently running vagrant environment'
'suspend:Suspends the currently running vagrant environment'
'snapshot:Used to manage snapshots with the guest machine'
'snapshot:Used to manage snapshots with the guest machine'
'up:Creates the vagrant environment'
'up:Creates the vagrant environment'
'validate:Validates the Vagrantfile'
'version:Prints current and latest Vagrant version'
'version:Prints current and latest Vagrant version'
'--help:[TASK] Describe available tasks or one specific task'
'--help:[TASK] Describe available tasks or one specific task'
'--version:Prints the Vagrant version information'
'--version:Prints the Vagrant version information'
...
@@ -54,7 +57,7 @@ __task_list ()
...
@@ -54,7 +57,7 @@ __task_list ()
local expl
local expl
declare -a tasks
declare -a tasks
tasks=(box destroy halt init package provision reload resume ssh ssh_config status suspend up version)
tasks=(box destroy halt init package p
ort p
rovision reload resume ssh ssh_config status suspend up version)
_wanted tasks expl 'help' compadd $tasks
_wanted tasks expl 'help' compadd $tasks
}
}
...
@@ -123,7 +126,7 @@ case $state in
...
@@ -123,7 +126,7 @@ case $state in
(box)
(box)
__vagrant-box
__vagrant-box
;;
;;
(up|provision|package|destroy|reload|ssh|ssh-config|halt|resume|status)
(up|provision|p
ort|p
ackage|destroy|reload|ssh|ssh-config|halt|resume|status)
_arguments ':feature:__vm_list'
_arguments ':feature:__vm_list'
esac
esac
;;
;;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment