From 5320c2bb29d8044a9b96ce0776838e76823f8158 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Tue, 10 Jan 2012 01:30:42 +0100 Subject: node/laptop: added virtualenv python startup --- bashrc/node/laptop/virtualenv.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 bashrc/node/laptop/virtualenv.sh (limited to 'bashrc') diff --git a/bashrc/node/laptop/virtualenv.sh b/bashrc/node/laptop/virtualenv.sh new file mode 100644 index 0000000..d0fe6a7 --- /dev/null +++ b/bashrc/node/laptop/virtualenv.sh @@ -0,0 +1,9 @@ +if hash "virtualenvwrapper.sh" 2>/dev/null; then + export WORKON_HOME=~/dev/python + + if [ -e ${WORKON_HOME} ]; then + mkdir -p $WORKON_HOME + fi + + source $(which virtualenvwrapper.sh) +fi -- cgit v1.2.3