formatted pip pip3 and pipenv completion and used helper functions

pull/1798/head
Gurkirat Singh 2021-01-10 19:28:34 +05:30 committed by Noah Gorny
parent c2d971f20e
commit 7959acddd9
3 changed files with 8 additions and 5 deletions

View File

@ -5,6 +5,6 @@
# If the pip package is installed within virtual environments, say, python managed by pyenv,
# you should first initilization the corresponding environment.
# So that the pip/pip3 is in system's path.
if command -v pip >/dev/null; then
eval "$(pip completion --bash)"
if _command_exists pip; then
eval "$(pip completion --bash)"
fi

View File

@ -5,6 +5,6 @@
# If the pip package is installed within virtual environments, say, python managed by pyenv,
# you should first initilization the corresponding environment.
# So that the pip/pip3 is in system's path.
if command -v pip3 >/dev/null; then
eval "$(pip3 completion --bash)"
if _command_exists pip3; then
eval "$(pip3 completion --bash)"
fi

View File

@ -1 +1,4 @@
[[ -x "$(which pipenv)" ]] && eval "$(pipenv --completion)"
if _command_exists pipenv
then
eval "$(pipenv --completion)"
fi