From 62d34f7e8b31c5a5a3d661295007182c27d02ce6 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Thu, 26 Apr 2012 03:51:37 +0200 Subject: virtualenv: load virtualenvwrapper everywhere if its enabled --- bashrc/common/virtualenv.sh | 3 +++ bashrc/node/laptop/virtualenv.sh | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 bashrc/common/virtualenv.sh (limited to 'bashrc') diff --git a/bashrc/common/virtualenv.sh b/bashrc/common/virtualenv.sh new file mode 100644 index 0000000..4bacadc --- /dev/null +++ b/bashrc/common/virtualenv.sh @@ -0,0 +1,3 @@ +if hash "virtualenvwrapper.sh" 2>/dev/null; then + source $(which virtualenvwrapper.sh) +fi diff --git a/bashrc/node/laptop/virtualenv.sh b/bashrc/node/laptop/virtualenv.sh index d0fe6a7..70b7ef8 100644 --- a/bashrc/node/laptop/virtualenv.sh +++ b/bashrc/node/laptop/virtualenv.sh @@ -4,6 +4,4 @@ if hash "virtualenvwrapper.sh" 2>/dev/null; then if [ -e ${WORKON_HOME} ]; then mkdir -p $WORKON_HOME fi - - source $(which virtualenvwrapper.sh) fi -- cgit v1.2.3