Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
ea274ab9
Commit
ea274ab9
authored
Nov 15, 2010
by
Fedyashev Nikita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed formatting; dead code deleted
parent
148c14e4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
90 deletions
+59
-90
_vagrant
plugins/vagrant/_vagrant
+59
-90
No files found.
plugins/vagrant/_vagrant
View file @
ea274ab9
...
...
@@ -15,7 +15,7 @@ __task_list ()
__box_list ()
{
_wanted application expl 'hxlp
' compadd $(command ls -1 $HOME/.vagrant/boxes 2>/dev/null| sed -e 's/ /\\ /g')
_wanted application expl 'command
' compadd $(command ls -1 $HOME/.vagrant/boxes 2>/dev/null| sed -e 's/ /\\ /g')
}
__vagrant-box ()
...
...
@@ -29,36 +29,21 @@ __vagrant-box ()
case $state in
(command)
# local -a subcommands
# subcommands=(
# 'start:Start a new release branch'
# 'finish:Finish a release branche.'
# 'list:List all your release branches. (Alias to `git flow release`)'
# )
# _describe -t commands 'git flow release' subcommands
# _arguments \
# -v'[Verbose (more) output]'
_describe -t commands "gem subcommand" _box_arguments
return
;;
(options)
case $line[1] in
(repackage)
(repackage|remove)
_arguments \
-F'[Fetch from origin before performing finish]' \
-r'[Rebase instead of merge]'\
':feature:__box_list'
;;
esac
;;
esac
}
local -a _1st_arguments
...
...
@@ -92,46 +77,30 @@ _box_arguments=(
local expl
local -a boxes installed_boxes
#_arguments \
# '(-v --version)'{-v,--version}'[show version]' \
# '(-h --help)'{-h,--help}'[show help]' \
# '*:: :->subcmds' && return 0
local curcontext="$curcontext" state line
typeset -A opt_args
local curcontext="$curcontext" state line
typeset -A opt_args
_arguments -C \
_arguments -C \
':command:->command' \
'*::options:->options'
#echo $state
#echo -e "\n\n\n\n"
#echo $line[1]
case $state in
(command)
_describe -t commands "gem subcommand" _1st_arguments
return
;;
(options)
case $line[1] in
(help)
_arguments \
-F'[Fetch from origin before performing finish]' \
-r'[Rebase instead of merge]'\
':feature:__task_list'
;;
(box)
__vagrant-box
;;
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