added completion for pip

This commit is contained in:
MatToufoutu 2010-10-04 11:24:56 +02:00
commit f92d4c20bc

10
lib/pip_completion.zsh Normal file
View file

@ -0,0 +1,10 @@
function _pip_completion {
local words cword
read -Ac words
read -cn cword
reply=( $( COMP_WORDS="$words[*]" \
COMP_CWORD=$(( cword-1 )) \
PIP_AUTO_COMPLETE=1 $words[1] ) )
}
compctl -K _pip_completion pip