Fix the completion for pip/pip3

pull/1475/head
Hongyi Zhao 2020-01-09 23:20:28 +08:00
parent cfa94e70fa
commit d85a254429
2 changed files with 4 additions and 22 deletions

View File

@ -1,11 +1,2 @@
# https://pip.pypa.io/en/stable/user_guide/#command-completion
# pip bash completion start eval "$(pip completion --bash)"
_pip_completion()
{
COMPREPLY=( $( COMP_WORDS="${COMP_WORDS[*]}" \
COMP_CWORD=$COMP_CWORD \
PIP_AUTO_COMPLETE=1 $1 ) )
}
complete -o default -F _pip_completion pip
# pip bash completion end

View File

@ -1,11 +1,2 @@
# https://pip.pypa.io/en/stable/user_guide/#command-completion
# pip bash completion start eval "$(pip3 completion --bash)"
_pip_completion()
{
COMPREPLY=( $( COMP_WORDS="${COMP_WORDS[*]}" \
COMP_CWORD=$COMP_CWORD \
PIP_AUTO_COMPLETE=1 $1 ) )
}
complete -o default -F _pip_completion pip3
# pip bash completion end