diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2012-01-10 01:30:42 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2012-01-10 01:30:42 +0100 |
commit | 5320c2bb29d8044a9b96ce0776838e76823f8158 (patch) | |
tree | a59bade46b3c9f2c5ee45dc0c343ae8828bcca67 | |
parent | 988c0fe1c86d97b1693ae4aa5ac31be901e85775 (diff) | |
download | dotfiles-5320c2bb29d8044a9b96ce0776838e76823f8158.tar.gz dotfiles-5320c2bb29d8044a9b96ce0776838e76823f8158.tar.xz dotfiles-5320c2bb29d8044a9b96ce0776838e76823f8158.zip |
node/laptop: added virtualenv python startup
-rw-r--r-- | bashrc/node/laptop/virtualenv.sh | 9 |
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 |