Merge pull request #1798 from NoahGorny/cleanup/pip-completions

cleanup/pip completions
pull/1802/head
Noah Gorny 2021-01-28 17:54:59 +02:00 committed by GitHub
commit 71c0c06a78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 13 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1 +1,4 @@
[[ -x "$(which pipenv)" ]] && eval "$(pipenv --completion)"
# shellcheck shell=bash
if _command_exists pipenv; then
eval "$(pipenv --completion)"
fi