- Notifications
You must be signed in to change notification settings - Fork3.1k
Closed
Description
- Pip version: 8.1.2
- Python version: 3.5.2
- Operating System: Arch Linux
Description:
pip uninstall <TAB>
quickly followed by Ctrl-C causes a traceback (associated with the KeyboardInterrupt) to be printed. This traceback should arguably not be displayed.
A simple fix would be to changepip completion --zsh
(and similarly--bash
) to
# pip zsh completion startfunction _pip_completion { local words cword read -Ac words read -cn cword reply=( $( COMP_WORDS="$words[*]" \ COMP_CWORD=$(( cword-1 )) \ PIP_AUTO_COMPLETE=1 $words[1] 2>/dev/null ) ) # note the redirection.}compctl -K _pip_completion pip# pip zsh completion end