summaryrefslogtreecommitdiff
path: root/plugins/gem/_gem
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/gem/_gem')
-rw-r--r--plugins/gem/_gem6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/gem/_gem b/plugins/gem/_gem
index 975cec602..25967f1e7 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,9 @@ if (( CURRENT == 1 )); then
fi
case "$words[1]" in
+ build)
+ _files -g "*.gemspec"
+ ;;
list)
if [[ "$state" == forms ]]; then
_gem_installed