diff --git a/src/_gem b/src/_gem index 3f8f7c2..851c83f 100644 --- a/src/_gem +++ b/src/_gem @@ -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=