summaryrefslogtreecommitdiff
path: root/functions/pip
diff options
context:
space:
mode:
authorDaniel Schauenberg <d@unwiredcouch.com>2010-10-01 10:59:48 +0200
committerDaniel Schauenberg <d@unwiredcouch.com>2010-10-01 10:59:48 +0200
commit7936bbbd5a3895caa7153e4d03740ac12a333862 (patch)
tree58130236a5f640dfed06876c498c2d4cba548b86 /functions/pip
parentd340bfab3345a223114b09d589356ff18a1a3efd (diff)
downloadzsh-7936bbbd5a3895caa7153e4d03740ac12a333862.tar.gz
zsh-7936bbbd5a3895caa7153e4d03740ac12a333862.tar.bz2
zsh-7936bbbd5a3895caa7153e4d03740ac12a333862.zip
adapt brew,gem,pip plugin to new structure
Diffstat (limited to 'functions/pip')
-rw-r--r--functions/pip/_pip46
1 files changed, 0 insertions, 46 deletions
diff --git a/functions/pip/_pip b/functions/pip/_pip
deleted file mode 100644
index b58010173..000000000
--- a/functions/pip/_pip
+++ /dev/null
@@ -1,46 +0,0 @@
-#compdef pip
-#autoload
-
-# pip zsh completion, based on homebrew completion
-
-_pip_installed() {
- installed_pkgs=(`pip freeze`)
-}
-
-local -a _1st_arguments
-_1st_arguments=(
- 'bundle:Create pybundles (archives containing multiple packages)'
- 'freeze:Output all currently installed packages (exact versions) to stdout'
- 'help:Show available commands'
- 'install:Install packages'
- 'search:Search PyPI'
- 'uninstall:Uninstall packages'
- 'unzip:Unzip individual packages'
- 'zip:Zip individual packages'
-)
-
-local expl
-local -a pkgs installed_pkgs
-
-_arguments \
- '(--version)--version[Show version number of program and exit]' \
- '(-v --verbose)'{-v,--verbose}'[Give more output]' \
- '(-q --quiet)'{-q,--quiet}'[Give less output]' \
- '(-h --help)'{-h,--help}'[Show help]' \
- '*:: :->subcmds' && return 0
-
-if (( CURRENT == 1 )); then
- _describe -t commands "pip subcommand" _1st_arguments
- return
-fi
-
-case "$words[1]" in
- list)
- if [[ "$state" == forms ]]; then
- _pip_installed
- _requested installed_pkgs expl 'installed packages' compadd -a installed_pkgs
- fi ;;
- uninstall)
- _pip_installed
- _wanted installed_pkgs expl 'installed packages' compadd -a installed_pkgs ;;
-esac