mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
added completion for pip
This commit is contained in:
parent
b417f6a742
commit
f92d4c20bc
1 changed files with 10 additions and 0 deletions
10
lib/pip_completion.zsh
Normal file
10
lib/pip_completion.zsh
Normal 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
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue