formatted pip pip3 and pipenv completion and used helper functions
parent
c2d971f20e
commit
7959acddd9
|
|
@ -5,6 +5,6 @@
|
||||||
# If the pip package is installed within virtual environments, say, python managed by pyenv,
|
# If the pip package is installed within virtual environments, say, python managed by pyenv,
|
||||||
# you should first initilization the corresponding environment.
|
# you should first initilization the corresponding environment.
|
||||||
# So that the pip/pip3 is in system's path.
|
# So that the pip/pip3 is in system's path.
|
||||||
if command -v pip >/dev/null; then
|
if _command_exists pip; then
|
||||||
eval "$(pip completion --bash)"
|
eval "$(pip completion --bash)"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,6 @@
|
||||||
# If the pip package is installed within virtual environments, say, python managed by pyenv,
|
# If the pip package is installed within virtual environments, say, python managed by pyenv,
|
||||||
# you should first initilization the corresponding environment.
|
# you should first initilization the corresponding environment.
|
||||||
# So that the pip/pip3 is in system's path.
|
# So that the pip/pip3 is in system's path.
|
||||||
if command -v pip3 >/dev/null; then
|
if _command_exists pip3; then
|
||||||
eval "$(pip3 completion --bash)"
|
eval "$(pip3 completion --bash)"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
[[ -x "$(which pipenv)" ]] && eval "$(pipenv --completion)"
|
if _command_exists pipenv
|
||||||
|
then
|
||||||
|
eval "$(pipenv --completion)"
|
||||||
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue