Created
December 22, 2011 20:15
-
-
Save bernardobarreto/1511675 to your computer and use it in GitHub Desktop.
Pip commands completion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#just add into your bashrc: | |
# 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 pip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment