1
0
Fork 0

Moved gem completion into Ruby plugin.

pull/3/head
Sorin Ionescu 13 years ago
parent 57d7f0098f
commit c2c10f9881

@ -1,9 +1,9 @@
#compdef gem
#autoload
# gem zsh completion, based on homebrew completion
# This completion is based on the Homebrew completion.
_gem_installed() {
function _gem-installed() {
installed_gems=(`gem list --local --no-versions`)
}
@ -55,10 +55,11 @@ fi
case "$words[1]" in
list)
if [[ "$state" == forms ]]; then
_gem_installed
_gem-installed
_requested installed_gems expl 'installed gems' compadd -a installed_gems
fi ;;
uninstall|update)
_gem_installed
_gem-installed
_wanted installed_gems expl 'installed gems' compadd -a installed_gems ;;
esac
Loading…
Cancel
Save