Fix the completion for pip/pip3
parent
cfa94e70fa
commit
d85a254429
|
|
@ -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
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue