Merge pull request #1798 from NoahGorny/cleanup/pip-completions
cleanup/pip completionspull/1802/head
commit
71c0c06a78
|
|
@ -68,6 +68,9 @@ completion/available/github-cli.completion.bash
|
|||
completion/available/helm.completion.bash
|
||||
completion/available/knife.completion.bash
|
||||
completion/available/packer.completion.bash
|
||||
completion/available/pip.completion.bash
|
||||
completion/available/pip3.completion.bash
|
||||
completion/available/pipenv.completion.bash
|
||||
completion/available/pipx.completion.bash
|
||||
completion/available/rustup.completion.bash
|
||||
completion/available/vault.completion.bash
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
# shellcheck shell=bash
|
||||
|
||||
# https://pip.pypa.io/en/stable/user_guide/#command-completion
|
||||
# Of course, you should first install the pip, say on Debian:
|
||||
# Of course, you should first install pip, say on Debian:
|
||||
# sudo apt-get install python-pip
|
||||
# sudo apt-get install python3-pip
|
||||
# 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
|
||||
# you should first initialize the corresponding environment.
|
||||
# So that pip is in the system's path.
|
||||
if _command_exists pip; then
|
||||
eval "$(pip completion --bash)"
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
# shellcheck shell=bash
|
||||
|
||||
# https://pip.pypa.io/en/stable/user_guide/#command-completion
|
||||
# Of course, you should first install the pip, say on Debian:
|
||||
# sudo apt-get install python-pip
|
||||
# Of course, you should first install pip, say on Debian:
|
||||
# sudo apt-get install python3-pip
|
||||
# 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
|
||||
# you should first initialize the corresponding environment.
|
||||
# So that pip3 is in the system's path.
|
||||
if _command_exists pip3; then
|
||||
eval "$(pip3 completion --bash)"
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -1 +1,4 @@
|
|||
[[ -x "$(which pipenv)" ]] && eval "$(pipenv --completion)"
|
||||
# shellcheck shell=bash
|
||||
if _command_exists pipenv; then
|
||||
eval "$(pipenv --completion)"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in New Issue