zsh/pip.zsh @ 54f00c6bfa64

vim: django filetype autocommands
author Steve Losh <steve@stevelosh.com>
date Tue, 10 May 2011 10:36:10 -0400
parents 95b6f336d3ba
children (none)
#!/usr/bin/env zsh

export PIP_VIRTUALENV_BASE=$WORKON_HOME

PIP_BIN="`which pip`"
alias pip-sys="$PIP_BIN"

pip() {
    if [ -n "$VIRTUAL_ENV" ]
    then $PIP_BIN -E "$VIRTUAL_ENV" "$@"
    else echo "Not currently in a venv -- use pip-sys to work system-wide."
    fi
}