Skip to content

Instantly share code, notes, and snippets.

@bernardobarreto
Created December 22, 2011 20:15
Show Gist options
  • Save bernardobarreto/1511675 to your computer and use it in GitHub Desktop.
Save bernardobarreto/1511675 to your computer and use it in GitHub Desktop.
Pip commands completion
#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