1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-06-14 20:41:44 +00:00

Removed completions managed by zsh-completions.

This commit is contained in:
Sorin Ionescu
2011-09-27 18:51:56 -04:00
parent 15ed7860f3
commit 3dbc808b96
24 changed files with 0 additions and 1472 deletions

View File

@ -1 +0,0 @@
_rvm

View File

@ -1,67 +0,0 @@
#compdef gem
#autoload
# This completion is based on the Homebrew completion.
function _gem-installed() {
installed_gems=(`gem list --local --no-versions`)
}
local -a _1st_arguments
_1st_arguments=(
'cert:Manage RubyGems certificates and signing settings'
'check:Check installed gems'
'cleanup:Clean up old versions of installed gems in the local repository'
'contents:Display the contents of the installed gems'
'dependency:Show the dependencies of an installed gem'
'environment:Display information about the RubyGems environment'
'fetch:Download a gem and place it in the current directory'
'generate_index:Generates the index files for a gem server directory'
'help:Provide help on the `gem` command'
'install:Install a gem into the local repository'
'list:Display gems whose name starts with STRING'
'lock:Generate a lockdown list of gems'
'mirror:Mirror a gem repository'
'outdated:Display all gems that need updates'
'owner:Manage gem owners on RubyGems.org.'
'pristine:Restores installed gems to pristine condition from files located in the gem cache'
'push:Push a gem up to RubyGems.org'
'query:Query gem information in local or remote repositories'
'rdoc:Generates RDoc for pre-installed gems'
'search:Display all gems whose name contains STRING'
'server:Documentation and gem repository HTTP server'
'sources:Manage the sources and cache file RubyGems uses to search for gems'
'specification:Display gem specification (in yaml)'
'stale:List gems along with access times'
'uninstall:Uninstall gems from the local repository'
'unpack:Unpack an installed gem to the current directory'
'update:Update the named gems (or all installed gems) in the local repository'
'which:Find the location of a library file you can require'
)
local expl
local -a gems installed_gems
_arguments \
'(-v --version)'{-v,--version}'[show version]' \
'(-h --help)'{-h,--help}'[show help]' \
'*:: :->subcmds' && return 0
if (( CURRENT == 1 )); then
_describe -t commands "gem subcommand" _1st_arguments
return
fi
case "$words[1]" in
(list)
if [[ "$state" == 'forms' ]]; then
_gem-installed
_requested installed_gems expl 'installed gems' compadd -a installed_gems
fi
;;
(uninstall|update)
_gem-installed
_wanted installed_gems expl 'installed gems' compadd -a installed_gems
;;
esac

View File

@ -15,27 +15,13 @@ if [[ "$OSTYPE" == darwin* ]]; then
fi
# Loads RVM into the shell session.
completion_file="${0:h}/_rvm"
if [[ ! -e "$completion_file" ]] && [[ -L "$completion_file" ]]; then
unlink "$completion_file" 2> /dev/null
fi
if [[ -s "$HOME/.rvm/scripts/rvm" ]]; then
# Auto adding variable-stored paths to ~ list conflicts with RVM.
unsetopt auto_name_dirs
# Source RVM.
source "$HOME/.rvm/scripts/rvm"
# Complete RVM.
if [[ ! -e "$completion_file" ]]; then
ln -s \
"$rvm_path/scripts/zsh/Completion/_rvm" \
"$completion_file" \
2> /dev/null
fi
fi
unset completion_file
# Loads rbenv into the shell session.
if [[ -s "$HOME/.rbenv/bin/rbenv" ]]; then