Commits

Paul McLanahan committed d8fb79c

Updated pip configs for new options and bash completion.

  • Participants
  • Parent commits 9084e72

Comments (0)

Files changed (1)

 [ -z "$PS1" ] && return
 
 # virtualenvwrapper and pip
+export PIP_USE_MIRRORS=true
 export PIP_DOWNLOAD_CACHE=$HOME/.cache/pip
 export PROJECTS_HOME=$HOME/Projects
 export PROJECT_HOME=$PROJECTS_HOME
     fortune
 fi
 
-# 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
-# pip bash completion end
+eval "`pip completion --bash`"
 
 #cd to the folder containing the python package or file you want
 #from http://chris-lamb.co.uk/2010/04/22/locating-source-any-python-module/