# HG changeset patch # User Steve Losh # Date 1254343921 14400 # Node ID d2e9d6c0f33188a8c9dba30e5f836fa2cfbc1baa # Parent 7e3a65490c2107320cf3416e144269c48cd437da# Parent 4fba8f7c253d3670b1a18ecbb741e442fbe6489d Merge the removal of hgsubversion. diff -r 4fba8f7c253d -r d2e9d6c0f331 .bashrc --- a/.bashrc Wed Sep 30 16:51:40 2009 -0400 +++ b/.bashrc Wed Sep 30 16:52:01 2009 -0400 @@ -41,6 +41,16 @@ source ~/lib/hg/bash_completion source ~/lib/virtualenvwrapper_bashrc +# Wrap pip to prevent stupid mistakes ---------------------------------------- +export 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 +} + # Task stuff ----------------------------------------------------------------- alias t='~/src/t/t.py --task-dir="~/tasks"' alias m='~/src/t/t.py --task-dir="~/tasks" --list=music'