From fa1657e10bc062394390d83d0bb5d3848905f5b6 Mon Sep 17 00:00:00 2001 From: David Lee Date: Sun, 26 Feb 2012 02:29:24 -0800 Subject: [PATCH] Add gem build autocompletion --- plugins/gem/_gem | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/gem/_gem b/plugins/gem/_gem index 83cba40d..3c0922f2 100644 --- a/plugins/gem/_gem +++ b/plugins/gem/_gem @@ -9,6 +9,7 @@ _gem_installed() { local -a _1st_arguments _1st_arguments=( + 'build:Build a gem from a gemspec' 'cert:Manage RubyGems certificates and signing settings' 'check:Check installed gems' 'cleanup:Clean up old versions of installed gems in the local repository' @@ -53,6 +54,9 @@ if (( CURRENT == 1 )); then fi case "$words[1]" in + build) + _files -g "*.gemspec" + ;; list) if [[ "$state" == forms ]]; then _gem_installed