mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-23 04:28:00 +00:00
Moved gem completion into Ruby plugin.
This commit is contained in:
parent
638cfb79bd
commit
38283f86c1
@ -1,9 +1,9 @@
|
|||||||
#compdef gem
|
#compdef gem
|
||||||
#autoload
|
#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`)
|
installed_gems=(`gem list --local --no-versions`)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -55,10 +55,11 @@ fi
|
|||||||
case "$words[1]" in
|
case "$words[1]" in
|
||||||
list)
|
list)
|
||||||
if [[ "$state" == forms ]]; then
|
if [[ "$state" == forms ]]; then
|
||||||
_gem_installed
|
_gem-installed
|
||||||
_requested installed_gems expl 'installed gems' compadd -a installed_gems
|
_requested installed_gems expl 'installed gems' compadd -a installed_gems
|
||||||
fi ;;
|
fi ;;
|
||||||
uninstall|update)
|
uninstall|update)
|
||||||
_gem_installed
|
_gem-installed
|
||||||
_wanted installed_gems expl 'installed gems' compadd -a installed_gems ;;
|
_wanted installed_gems expl 'installed gems' compadd -a installed_gems ;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in New Issue
Block a user