Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add gem build autocompletion #973

Merged
merged 1 commit into from

3 participants

@dlee

Add auto-completion for gem build

@AJ-Acevedo

@robbyrussell What do you need from the community to get this implemented? Would love to see this working.

@robbyrussell robbyrussell merged commit d4e907b into robbyrussell:master
@Gluestick Gluestick referenced this pull request from a commit in Gluestick/oh-my-zsh
Joep Kemperman Squashed commit of the following:
commit ffc17b6
Merge: 27965fe 1ca4e21
Author: Robby Russell <robby@planetargon.com>
Date:   Sun Mar 23 11:40:46 2014 -0700

    Merge pull request #2563 from bobwilliams/master

    Adds command line aliases useful for dealing with JSON

commit 27965fe
Merge: 47ad242 6a40557
Author: Robby Russell <robby@planetargon.com>
Date:   Sun Mar 23 11:39:07 2014 -0700

    Merge pull request #2390 from LFDM/updating_spectrum

    Updates and refactors spectrum.zsh

commit 47ad242
Merge: 315099d 6889dfa
Author: Robby Russell <robby@planetargon.com>
Date:   Sun Mar 23 11:38:29 2014 -0700

    Merge pull request #2645 from ncanceill/template-zshrc

    Improve template zshrc

commit 1ca4e21
Merge: d70e732 315099d
Author: Bob Williams <bobwilliams.ii@gmail.com>
Date:   Sun Mar 23 14:26:06 2014 -0400

    Merge remote-tracking branch 'upstream/master'

commit 6889dfa
Author: ncanceill <nicolas.canceill@ens-cachan.org>
Date:   Sun Mar 23 14:47:10 2014 +0100

    $ZSH is the OMZ installation folder, not configuration

commit 04c2d29
Author: ncanceill <nicolas.canceill@ens-cachan.org>
Date:   Sun Mar 23 14:45:55 2014 +0100

    mention $ZSH_CUSTOM as suggested in #2295

commit f9ad368
Author: ncanceill <nicolas.canceill@ens-cachan.org>
Date:   Sun Mar 23 14:39:38 2014 +0100

    suggest setting $LANG to fix #1286 and fix #1823

commit 315099d
Merge: 178b522 12e30fa
Author: Robby Russell <robby@planetargon.com>
Date:   Sat Mar 22 19:10:56 2014 -0700

    Merge pull request #2643 from mcornella/patch-1

    Fix export syntax of $GREP_OPTIONS

commit d70e732
Merge: 5a58667 178b522
Author: Bob Williams <bobwilliams.ii@gmail.com>
Date:   Sat Mar 22 21:24:52 2014 -0400

    Merge remote-tracking branch 'upstream/master'

commit 12e30fa
Author: Marc Cornellà <marc.cornella@live.com>
Date:   Sun Mar 23 02:03:12 2014 +0100

    Fix export syntax of $GREP_OPTIONS

    Fixes #2641, #2642

commit 178b522
Merge: c4727ab 97ec5de
Author: Robby Russell <robby@planetargon.com>
Date:   Sat Mar 22 16:22:34 2014 -0700

    Merge pull request #1302 from cybozuty/master

    Vagrant plugin: Rendering the 'vagrant box (remove|repackage)' completion code independant of Vagrant implementation details.

commit c4727ab
Merge: 393c805 265b2a5
Author: Robby Russell <robby@planetargon.com>
Date:   Sat Mar 22 16:19:37 2014 -0700

    Merge pull request #1262 from fred-o/glassfish-plugin

    Glassfish plugin

commit 393c805
Merge: 668886e 4f9cfee
Author: Robby Russell <robby@planetargon.com>
Date:   Sat Mar 22 16:07:51 2014 -0700

    Merge pull request #1162 from nXqd/patch-1

    avoid VCS folders

commit 668886e
Merge: 5540daf af03da0
Author: Robby Russell <robby@planetargon.com>
Date:   Sat Mar 22 15:58:00 2014 -0700

    Merge pull request #1117 from Peeja/move-example-plugin

    Move example plugin to the custom plugins directory.

commit 5540daf
Merge: 7550436 c9c0214
Author: Robby Russell <robby@planetargon.com>
Date:   Sat Mar 22 15:55:44 2014 -0700

    Merge pull request #967 from wjlroe/pip-requirements

    Add completion for pip install -r - so that it autocompletes requirement...

commit 7550436
Merge: ae1f331 94dd651
Author: Robby Russell <robby@planetargon.com>
Date:   Sat Mar 22 15:44:11 2014 -0700

    Merge pull request #1022 from derekwyatt/master

    A plugin that makes it easier to interact with the (single) running instance of gvim

commit ae1f331
Merge: ae1a9e2 8762b27
Author: Robby Russell <robby@planetargon.com>
Date:   Sat Mar 22 15:41:46 2014 -0700

    Merge pull request #1005 from cmar/powed

    pow plugin - commands to restart pow and list urls

commit ae1a9e2
Merge: fff49ae 4a88743
Author: Robby Russell <robby@planetargon.com>
Date:   Sat Mar 22 15:40:00 2014 -0700

    Merge pull request #995 from wting/fix_gnzh_ruby_detection

    Fix gnzh theme to detect local rvm installations

commit fff49ae
Merge: d4e907b 071d0d6
Author: Robby Russell <robby@planetargon.com>
Date:   Sat Mar 22 15:38:47 2014 -0700

    Merge pull request #990 from tommorris/master

    README should have link to wiki for plugins

commit d4e907b
Merge: 9eacd7d fa1657e
Author: Robby Russell <robby@planetargon.com>
Date:   Sat Mar 22 15:36:52 2014 -0700

    Merge pull request #973 from dlee/gem_build

    Add gem build autocompletion

commit 9eacd7d
Merge: d41c588 98578ec
Author: Robby Russell <robby@planetargon.com>
Date:   Sat Mar 22 13:59:19 2014 -0700

    Merge pull request #750 from blueyed/history-drop-default-append-history

    `setopt append_history` is not necessary.

commit d41c588
Merge: d8a5fff 40508b7
Author: Robby Russell <robby@planetargon.com>
Date:   Sat Mar 22 13:56:03 2014 -0700

    Merge pull request #672 from eMxyzptlk/zsh_reload

    Add zsh_reload which provides src function, this function will source .zshrc and rebuilds cache

commit d8a5fff
Merge: 95302af be6f0c9
Author: Robby Russell <robby@planetargon.com>
Date:   Sat Mar 22 13:55:33 2014 -0700

    Merge pull request #662 from walle/add_autocomplete_for_gas

    Update the script to account for the changes in 0.1.7 where .gas is a dir

commit 95302af
Merge: 319aafc de29ef8
Author: Robby Russell <robby@planetargon.com>
Date:   Sat Mar 22 13:51:47 2014 -0700

    Merge pull request #646 from whittle/master

    Change default zshrc to export $ZSH (as required by check_for_upgrade.sh).

commit 319aafc
Merge: 23fe53e a869ec9
Author: Robby Russell <robby@planetargon.com>
Date:   Sat Mar 22 13:36:27 2014 -0700

    Merge pull request #2618 from bdubertret/fix-gwip-norm

    Fix gwip alias in git plugin when no files to rm

commit 23fe53e
Merge: 73fd066 32a7824
Author: Robby Russell <robby@planetargon.com>
Date:   Sat Mar 22 13:32:49 2014 -0700

    Merge pull request #2634 from danchenkov/master

    added terminfo keys verification

commit 73fd066
Merge: d968397 610655e
Author: Robby Russell <robby@planetargon.com>
Date:   Sat Mar 22 13:32:19 2014 -0700

    Merge pull request #2638 from miguelfrde/irb

    Add irb to the list of bundled commands

commit d968397
Merge: 1235103 9e90bf0
Author: Robby Russell <robby@planetargon.com>
Date:   Sat Mar 22 13:30:16 2014 -0700

    Merge pull request #2605 from mhauserr/patch-1

    Added v as a keybinding to edit-command-line in vi-mode

commit 1235103
Merge: c97aff8 3be2e34
Author: Robby Russell <robby@planetargon.com>
Date:   Sat Mar 22 13:28:30 2014 -0700

    Merge pull request #2615 from erbridge/fix_virtualenvwrapper_lazy

    Don't lazy load the virtualenvwrapper

commit c97aff8
Merge: e0e4c0e baf2ab1
Author: Robby Russell <robby@planetargon.com>
Date:   Sat Mar 22 13:27:56 2014 -0700

    Merge pull request #2616 from Bounga/master

    Don't set RBENV_ROOT to "$HOME/.rbenv" when using Homebrew rbenv

commit e0e4c0e
Merge: 2e74fe7 fb2d6eb
Author: Robby Russell <robby@planetargon.com>
Date:   Sat Mar 22 13:27:28 2014 -0700

    Merge pull request #2620 from reedriley/master

    Fixed errors if acpitool isn't installed on linux

commit 2e74fe7
Merge: 2403b05 d3babe0
Author: Robby Russell <robby@planetargon.com>
Date:   Sat Mar 22 13:26:51 2014 -0700

    Merge pull request #2619 from korylprince/master

    Don't show useless '[]' when chruby_prompt_info is empty

commit 610655e
Author: Miguel Flores Ruiz de Eguino <miguel.frde@gmail.com>
Date:   Sat Mar 22 10:24:58 2014 -0600

    Sort bundled commands alphabetically

commit 2403b05
Merge: e742073 7b9e489
Author: Robby Russell <robby@planetargon.com>
Date:   Sat Mar 22 07:57:14 2014 -0700

    Merge pull request #2440 from m0nah/master

    Add Laravel4 plugin

commit e742073
Merge: 2e06412 c1c107c
Author: Robby Russell <robby@planetargon.com>
Date:   Sat Mar 22 07:56:35 2014 -0700

    Merge pull request #2510 from pavoljuhas/master

    Add scd plugin for smart change of directory.

commit 2e06412
Merge: 6d616de baeac5b
Author: Robby Russell <robby@planetargon.com>
Date:   Sat Mar 22 07:53:36 2014 -0700

    Merge pull request #2531 from KevinBongart/rake-fast

    Add rake-fast plugin for fast rake autocompletion

commit 6d616de
Merge: 184e93c 5f31190
Author: Robby Russell <robby@planetargon.com>
Date:   Sat Mar 22 07:52:24 2014 -0700

    Merge pull request #2637 from aforty/master

    Atom plugin

commit 184e93c
Merge: c98883f 645fceb
Author: Robby Russell <robby@planetargon.com>
Date:   Sat Mar 22 07:47:39 2014 -0700

    Merge pull request #2627 from loxley/add_knife_vault_cmd

    Add chef-vault knife cmd support

commit c98883f
Merge: c137c7b ef343ee
Author: Robby Russell <robby@planetargon.com>
Date:   Sat Mar 22 07:47:18 2014 -0700

    Merge pull request #2631 from AntoineD/master

    Fix dirpersist plugin

commit c137c7b
Merge: ca90021 1509ac9
Author: Robby Russell <robby@planetargon.com>
Date:   Sat Mar 22 07:43:41 2014 -0700

    Merge pull request #2639 from jieryn/master

    add common video formats FLV and WEBM

commit 1509ac9
Author: jieryn <jieryn@gmail.com>
Date:   Sat Mar 22 08:51:26 2014 -0400

    add common video formats FLV and WEBM

commit c3150ed
Author: Miguel Flores Ruiz de Eguino <miguel.frde@gmail.com>
Date:   Fri Mar 21 19:18:29 2014 -0600

    Add irb to the list of bundled commands

commit 32a7824
Author: Alexei Danchenkov <adanchenkov@gmail.com>
Date:   Fri Mar 21 09:24:59 2014 -0700

    Added a forward-delete fallback to bind Delete key

    Delete key (of Fn+Delete on Mac) would print "~" instead of deletion.

commit 5f31190
Author: Arno Fortelny <arno.fortelny@gmail.com>
Date:   Fri Mar 21 11:49:52 2014 -0400

    atom plugin

commit c5413d7
Author: Alexei Danchenkov <adanchenkov@gmail.com>
Date:   Thu Mar 20 19:34:43 2014 -0700

    Aligned comments

commit 55a9d68
Author: Alexei Danchenkov <adanchenkov@gmail.com>
Date:   Thu Mar 20 19:29:06 2014 -0700

    Update key-bindings.zsh

    Aligned comments

commit e537ee9
Author: Alexei Danchenkov <adanchenkov@gmail.com>
Date:   Thu Mar 20 19:10:44 2014 -0700

    added terminfo keys verification

commit ef343ee
Author: Antoine Dechaume <boolegue@gmail.com>
Date:   Thu Mar 20 10:43:33 2014 +0100

    Fix dirpersist plugin

    This plugin did not work, I just found the same functionnality in grml, this one works.

commit fb2d6eb
Author: Reed Riley <john.reed.riley@gmail.com>
Date:   Mon Mar 17 12:01:00 2014 -0400

    Fixed errors if acpitool isn't installed on linux

commit 645fceb
Author: Johan Svensson <jsv@one.com>
Date:   Tue Mar 18 10:52:25 2014 +0100

    Add chef-vault knife cmd support

commit c1c107c
Author: Pavol Juhas <pavol.juhas@gmail.com>
Date:   Mon Mar 17 19:49:12 2014 -0400

    Add scd plugin for smart change of directory.

    Synced with the scd-tracker branch
    pavoljuhas/oh-my-zsh@2f78243.

commit 6952105
Merge: ed19ffe ca90021
Author: Pavol Juhas <pavol.juhas@gmail.com>
Date:   Mon Mar 17 19:48:10 2014 -0400

    Merge branch 'master' of https://github.com/robbyrussell/oh-my-zsh

commit d3babe0
Author: Kory Prince <korylprince@gmail.com>
Date:   Mon Mar 17 11:02:47 2014 -0500

    Don't show useless '[]' when chruby_prompt_info is empty

commit a869ec9
Author: Benoit Dubertret <benoit.dubertret@iscool-e.com>
Date:   Mon Mar 17 16:07:46 2014 +0100

    Fix gwip alias in git plugin when no files to rm

commit 5a58667
Merge: 223fd60 ca90021
Author: Bob Williams <bobwilliams.ii@gmail.com>
Date:   Mon Mar 17 09:32:57 2014 -0400

    Merge remote-tracking branch 'upstream/master'

commit baf2ab1
Author: Nicolas Cavigneaux <nicolas@synbioz.com>
Date:   Mon Mar 17 10:05:56 2014 +0100

    Don't set RBENV_ROOT to "$HOME/.rbenv" when using Homebrew rbenv

    Hard setting RBENV_ROOT to "$HOME/.rbenv" when using Homebrew's rbenv
    will breaks it. It has to be set to $(brew --prefix rbenv).

commit 3be2e34
Author: Felix Laurie von Massenbach <felix@erbridge.co.uk>
Date:   Wed Mar 5 12:58:18 2014 +0000

    Don't lazy load the virtualenvwrapper.

    Fix robbyrussell#2355.

commit baeac5b
Author: Kevin Bongart <contact@kevinbongart.net>
Date:   Sun Mar 16 16:52:37 2014 -0400

    Remove copyright information, as per #2588

commit 223fd60
Merge: 185cb6e ee21fe9
Author: Bob Williams <bobwilliams.ii@gmail.com>
Date:   Fri Mar 14 10:32:03 2014 -0400

    Merge remote-tracking branch 'upstream/master'

commit 9e90bf0
Author: Michael Hauser-Raspe <michael.hauser-raspe@cantab.net>
Date:   Fri Mar 14 10:14:47 2014 +0000

    Added v as a keybinding to edit-command-line

    taken from [here](http://www.zsh.org/mla/users/2008/msg01013.html)
    We want pressing v in command mode to take us to an editor (defined by the $VISUAL or $EDITOR variable or vi) to edit the current contents of the command line which (I believe) is a standard feature of bash vi-mode or other readline prompts (see [here](http://www.catonmat.net/download/bash-vi-editing-mode-cheat-sheet.pdf) and [here](http://www.catonmat.net/blog/bash-vi-editing-mode-cheat-sheet/) for source).

commit 185cb6e
Author: Bob Williams <bobwilliams.ii@gmail.com>
Date:   Thu Feb 27 10:56:07 2014 -0500

    adding support for node

commit 56babe6
Author: Bob Williams <bobwilliams.ii@gmail.com>
Date:   Wed Feb 26 19:35:24 2014 -0500

    Adds command line aliases useful for dealing with JSON

commit 1a029f2
Author: Kevin Bongart <contact@kevinbongart.net>
Date:   Thu Feb 13 12:27:00 2014 -0500

    Add rake-fast plugin for fast rake autocompletion

commit ed19ffe
Author: Pavol Juhas <pavol.juhas@gmail.com>
Date:   Sat Feb 8 19:49:54 2014 -0500

    Add scd plugin for smart change of directory.

    Synced with the scd-tracker branch pavoljuhas/oh-my-zsh@9d04d8c

commit 7b9e489
Author: Evgeny Golubev <evgeny@golubev.eu>
Date:   Fri Jan 17 12:59:14 2014 +0300

    Add Laravel4 plugin

commit 6a40557
Author: LFDM <1986gh@gmail.com>
Date:   Tue Dec 31 14:54:34 2013 +0100

    Updates spectrum.zsh

commit 97ec5de
Author: cybozuty <ty_c@cybozu.co.jp>
Date:   Mon Sep 3 15:31:54 2012 +0900

    Rendering the 'vagrant box (remove|repackage)' completion code independant of Vagrant implementation details.

commit 265b2a5
Author: fred-o <fredrik.appelberg@gmail.com>
Date:   Fri Aug 3 10:15:01 2012 +0200

    application completion

commit c24d7f7
Author: fred-o <fredrik.appelberg@gmail.com>
Date:   Fri Aug 3 10:02:27 2012 +0200

    library completion

commit 8f0c617
Author: fred-o <fredrik.appelberg@gmail.com>
Date:   Fri Aug 3 10:02:19 2012 +0200

    in hindsight, this is probably a bad idea

commit a4e6a2c
Author: fred-o <fredrik.appelberg@gmail.com>
Date:   Tue Jul 31 16:59:56 2012 +0200

    completion of targets

commit fb3cae1
Author: fred-o <fredrik.appelberg@gmail.com>
Date:   Tue Jul 31 15:02:12 2012 +0200

    instance and cluster completion

commit 0ebeb56
Author: fred-o <fredrik.appelberg@gmail.com>
Date:   Tue Jul 24 16:16:55 2012 +0200

    node completion

commit b49c97e
Author: fred-o <fredrik.appelberg@gmail.com>
Date:   Tue Jul 24 12:15:36 2012 +0200

    help command, node completion

commit e4ffac1
Author: fred-o <fredrik.appelberg@gmail.com>
Date:   Fri Jul 13 16:24:45 2012 +0200

    added _files values for certain options

commit 4caea1f
Author: fred-o <fredrik.appelberg@gmail.com>
Date:   Fri Jul 13 12:08:41 2012 +0200

    completion options

commit df176fb
Author: fred-o <fredrik.appelberg@gmail.com>
Date:   Thu Jul 12 14:17:59 2012 +0200

    added alias

commit 350720e
Author: fred-o <fredrik.appelberg@gmail.com>
Date:   Thu Jul 12 14:05:33 2012 +0200

    added completions for all known arguments to all known commands

commit d2116f3
Author: fred-o <fredrik.appelberg@gmail.com>
Date:   Tue Jul 10 14:57:59 2012 +0200

    apparently, this file must exist for the plugin to load

commit 4d0c135
Author: fred-o <fredrik.appelberg@gmail.com>
Date:   Tue Jul 10 14:49:32 2012 +0200

    added completion for all asadmin subcommands

commit 4f9cfee
Author: nXqd <nxqd.inbox@gmail.com>
Date:   Thu Jun 14 08:06:36 2012 +0300

    avoid VCS folders

commit af03da0
Author: Peter Jaros <peter.a.jaros@gmail.com>
Date:   Wed May 16 14:51:52 2012 -0400

    Move example plugin to the custom plugins dir.

commit 8762b27
Author: cmar <chris@spreecommerce.com>
Date:   Wed Apr 4 12:54:31 2012 -0400

    command to restart pow process

commit 94dd651
Author: Derek Wyatt <derek@derekwyatt.org>
Date:   Sun Apr 1 15:41:39 2012 -0400

    Added an <esc> to the begining of everything. I ran something when I was in insert mode once and all it did was shove !args... into the buffer.  <esc> first.

commit c2e459a
Author: Derek Wyatt <derek@derekwyatt.org>
Date:   Fri Mar 30 06:39:49 2012 -0400

    Updated the README to include documentation on the postCallVim callout

commit 04a7536
Author: Derek Wyatt <derek@derekwyatt.org>
Date:   Fri Mar 30 06:33:06 2012 -0400

    Added an optional callout to the end of the interaction function. I put it in to allow me to put the window focus on MacVim / GVim depending on the different OS I happen to be on

commit 92227f1
Author: Derek Wyatt <dwyatt@rim.com>
Date:   Tue Mar 20 09:55:25 2012 -0400

    Fixed: If you callvim on a non-existant file with a relative path, the CWD of the running gvim process is used, and that's not right.  We use the PWD explicitly instead, in this case

commit e652756
Author: Derek Wyatt <dwyatt@rim.com>
Date:   Tue Mar 20 08:16:44 2012 -0400

    A plugin that makes it easier to interact with the (single) running instance of gvim

commit aefacb6
Author: cmar <chris@spreecommerce.com>
Date:   Fri Mar 9 08:53:09 2012 -0500

    added powed command to list pow urls

commit 4a88743
Author: William Ting <william.h.ting@gmail.com>
Date:   Tue Mar 6 14:31:03 2012 -1000

    fix gnzh theme to detect local rvm installations

commit 071d0d6
Author: Tom Morris <tom@tommorris.org>
Date:   Mon Mar 5 11:55:30 2012 +0000

    Added link to wiki page for plugins to README.

    The wiki is more readable than going to the plugins directory.

commit fa1657e
Author: David Lee <davidomundo@gmail.com>
Date:   Sun Feb 26 02:29:24 2012 -0800

    Add gem build autocompletion

commit c9c0214
Author: William Roe <willroe@gmail.com>
Date:   Thu Feb 23 14:11:52 2012 +0000

    Add completion for pip install -r - so that it autocompletes requirements filenames

commit 98578ec
Author: Daniel Hahler <git@thequod.de>
Date:   Fri Dec 16 14:21:45 2011 +0100

    `setopt append_history` is not necessary.

    Especially given the inc_append_history option, it is not necessary to
    set the (default) append_history option.

commit 40508b7
Author: Wael Nasreddine <wael.nasreddine@gmail.com>
Date:   Thu Oct 20 13:10:20 2011 +0200

    Add zsh_reload which provides src function, this function will source .zshrc and rebuilds cache

commit be6f0c9
Author: Fredrik Wallgren <fredrik.wallgren@gmail.com>
Date:   Sat Oct 15 23:31:27 2011 +0200

    Update the script to account for the changes in 0.1.7 where .gas is a directory

commit de29ef8
Author: Jason Whittle <jason.whittle@gmail.com>
Date:   Wed Oct 5 00:57:48 2011 -0300

    Change default zshrc to export $ZSH (as required by check_for_upgrade.sh).
ce6a15d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 26, 2012
  1. @dlee

    Add gem build autocompletion

    dlee authored
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 0 deletions.
  1. +4 −0 plugins/gem/_gem
View
4 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
Something went wrong with that request. Please try again.