1
0
mirror of https://github.com/bertptrs/vimconfig.git synced 2025-12-27 21:40:31 +01:00

Add python/pip configuration.

This commit is contained in:
Bert Peters
2016-12-03 20:00:55 +01:00
parent da6044aadf
commit ad70e7c8f3
4 changed files with 20 additions and 0 deletions

View File

@@ -112,6 +112,18 @@ zstyle :compinstall filename '/home/bert/.zshrc'
autoload -Uz compinit
compinit
# 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
##########################
## History configuration #
##########################