summaryrefslogtreecommitdiffstats
path: root/bashrc/node
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2012-01-10 01:30:42 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2012-01-10 01:30:42 +0100
commit5320c2bb29d8044a9b96ce0776838e76823f8158 (patch)
treea59bade46b3c9f2c5ee45dc0c343ae8828bcca67 /bashrc/node
parent988c0fe1c86d97b1693ae4aa5ac31be901e85775 (diff)
downloaddotfiles-5320c2bb29d8044a9b96ce0776838e76823f8158.tar.gz
dotfiles-5320c2bb29d8044a9b96ce0776838e76823f8158.tar.xz
dotfiles-5320c2bb29d8044a9b96ce0776838e76823f8158.zip
node/laptop: added virtualenv python startup
Diffstat (limited to 'bashrc/node')
-rw-r--r--bashrc/node/laptop/virtualenv.sh9
1 files changed, 9 insertions, 0 deletions
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