Merge the removal of hgsubversion.
author |
Steve Losh <steve@stevelosh.com> |
date |
Wed, 30 Sep 2009 16:52:01 -0400 |
parents |
7e3a65490c21
(diff)
4fba8f7c253d
(current diff)
|
children |
03ae1eba85b8
|
branches/tags |
(none) |
files |
|
Changes
--- 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'