dotfiles/.bash_it/completion/available/pip.completion.bash

12 lines
438 B
Bash
Raw Normal View History

2022-02-27 20:00:49 +01:00
# shellcheck shell=bash
# https://pip.pypa.io/en/stable/user_guide/#command-completion
# Of course, you should first install pip, say on Debian:
# sudo apt-get install python-pip
# If the pip package is installed within virtual environments, say, python managed by pyenv,
# 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