1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-13 09:20:09 +00:00

Add gem build autocompletion

This commit is contained in:
David Lee 2012-02-26 02:29:24 -08:00
parent 1120f97305
commit fa1657e10b

View file

@ -9,6 +9,7 @@ _gem_installed() {
local -a _1st_arguments local -a _1st_arguments
_1st_arguments=( _1st_arguments=(
'build:Build a gem from a gemspec'
'cert:Manage RubyGems certificates and signing settings' 'cert:Manage RubyGems certificates and signing settings'
'check:Check installed gems' 'check:Check installed gems'
'cleanup:Clean up old versions of installed gems in the local repository' 'cleanup:Clean up old versions of installed gems in the local repository'
@ -53,6 +54,9 @@ if (( CURRENT == 1 )); then
fi fi
case "$words[1]" in case "$words[1]" in
build)
_files -g "*.gemspec"
;;
list) list)
if [[ "$state" == forms ]]; then if [[ "$state" == forms ]]; then
_gem_installed _gem_installed