adding .zprofile with pip completion
This commit is contained in:
parent
b87072b008
commit
7e965ee6e4
1 changed files with 13 additions and 0 deletions
13
.zprofile
Normal file
13
.zprofile
Normal file
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue