little fix for the regex used to match the hook function name:

modified:   completion/available/pip.completion.bash
modified:   completion/available/pip3.completion.bash
pull/1518/head
Hongyi Zhao 2020-03-13 15:24:35 +08:00
parent 1052200f0c
commit 5c663b871a
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
# you should first install pip for the corresponding environment.
# Fix pip completion for running it within/outside of pyenv/virtualenv/venv/conda environment.
_regex="(^|[ ]|;)_pip_completion_hook(;|[ ]|$)"
_regex="(^|;[ ]*)_pip_completion_hook([ ]*;|$)"
_pip_completion_hook() {
local _pip

View File

@ -7,7 +7,7 @@
# you should first install pip for the corresponding environment.
# Fix pip completion for running it within/outside of pyenv/virtualenv/venv/conda environment.
_regex="(^|[ ]|;)_pip_completion_hook(;|[ ]|$)"
_regex="(^|;[ ]*)_pip_completion_hook([ ]*;|$)"
_pip_completion_hook() {
local _pip