This commit is contained in:
Zhao Cai 2012-10-21 00:55:19 -04:00
parent 65eefd3225
commit 6c7e9527d6
1 changed files with 8 additions and 0 deletions

View File

@ -40,6 +40,7 @@ _gem() {
"cleanup[Clean up old versions of installed gems in the local repository]" \
"contents[Display the contents of the installed gems]" \
"dependency[Show the dependencies of an installed gem]" \
"edit[Edit installed gem in editor]" \
"environment[Display information about the RubyGems environment]" \
"fetch[Download a gem and place it in the current directory]" \
"generate_index[Generates the index files for a gem server directory]" \
@ -179,6 +180,13 @@ _gem_dependency() {
"(-p --pipe)"{-p,--pipe}"[Pipe Format (name --version ver)]" \
$gem_general_flags && ret=0
}
_gem_edit() {
_arguments \
"*:gemname:__all_gems" \
"(-e --editor)"{-e,--editor}"[GEMEDITOR, BUNDLER_EDITOR, VISUAL and EDITOR environment variables are used to by default]" \
"(-d --dryrun)"{-d,--dryrun}"[Shows what command would be run without running it]" \
$gem_general_flags && ret=0
}
_gem_environment() {
typeset -g _environment_arg=