From 7e965ee6e450d6170a6e5008275a6311d36ab6e2 Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Sat, 20 Dec 2014 11:28:15 +0100 Subject: [PATCH] adding .zprofile with pip completion --- .zprofile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .zprofile diff --git a/.zprofile b/.zprofile new file mode 100644 index 0000000..3f100be --- /dev/null +++ b/.zprofile @@ -0,0 +1,13 @@ + +# pip zsh completion start +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 +# pip zsh completion end +