Fix the completion for pip/pip3
parent
cfa94e70fa
commit
d85a254429
|
|
@ -1,11 +1,2 @@
|
|||
|
||||
# pip bash completion start
|
||||
_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
|
||||
|
||||
# https://pip.pypa.io/en/stable/user_guide/#command-completion
|
||||
eval "$(pip completion --bash)"
|
||||
|
|
|
|||
|
|
@ -1,11 +1,2 @@
|
|||
|
||||
# pip bash completion start
|
||||
_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
|
||||
|
||||
# https://pip.pypa.io/en/stable/user_guide/#command-completion
|
||||
eval "$(pip3 completion --bash)"
|
||||
|
|
|
|||
Loading…
Reference in New Issue