Skip to content

pip3 completion #3997

@ilioni

Description

@ilioni
  • Pip version: 8.1.2-2
  • Python version: 3.5.2+
  • Operating System: Debian Stretch

pip3 completion --bash >> ~/.bashrc should write:

# pip bash completion start
_pip_completion()
{
    COMPREPLY=( $( COMP_WORDS="${COMP_WORDS[*]}" \
                   COMP_CWORD=$COMP_CWORD \
                   PIP_AUTO_COMPLETE=1 $1 ) )
}
complete -o default -F _pip_completion pip3
# pip bash completion end

pip3 instead of pip. Otherwise there completion does not work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-lockedOutdated issues that have been locked by automationtype: bugA confirmed bug or unintended behavior

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions