diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2012-04-26 03:51:37 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2012-04-26 03:51:37 +0200 |
commit | 62d34f7e8b31c5a5a3d661295007182c27d02ce6 (patch) | |
tree | aadb271c25d656ec7f4e0e693971ab171ede3de3 | |
parent | 918f19f41a8b201d3cd9dd45a69b09e58ec54909 (diff) | |
download | dotfiles-62d34f7e8b31c5a5a3d661295007182c27d02ce6.tar.gz dotfiles-62d34f7e8b31c5a5a3d661295007182c27d02ce6.tar.xz dotfiles-62d34f7e8b31c5a5a3d661295007182c27d02ce6.zip |
virtualenv: load virtualenvwrapper everywhere if its enabled
-rw-r--r-- | bashrc/common/virtualenv.sh | 3 | ||||
-rw-r--r-- | bashrc/node/laptop/virtualenv.sh | 2 |
2 files changed, 3 insertions, 2 deletions
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 |