diff options
Diffstat (limited to 'plugins/gem/_gem')
| -rw-r--r-- | plugins/gem/_gem | 8 | 
1 files changed, 7 insertions, 1 deletions
| diff --git a/plugins/gem/_gem b/plugins/gem/_gem index 975cec602..92feebe95 100644 --- a/plugins/gem/_gem +++ b/plugins/gem/_gem @@ -4,10 +4,11 @@  # gem zsh completion, based on homebrew completion  _gem_installed() { -  installed_gems=(`gem list --local --no-versions`) +  installed_gems=(${(f)"$(gem list --local --no-versions)"})  }  local -a _1st_arguments +  _1st_arguments=(    'build:Build a gem from a gemspec'    'cert:Manage RubyGems certificates and signing settings' @@ -55,6 +56,11 @@ if (( CURRENT == 1 )); then  fi  case "$words[1]" in +  build) +    _files -g "*.gemspec" +    ;; +  install) +    _files ;;    list)        if [[ "$state" == forms ]]; then          _gem_installed | 
