dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit c6ab4811765cd5ccdb225a0b1b9915cf78bd9912
parent a94892d430ba4e515867b90245a6d94c83b4d97b
Author: Yuval Langer <yuval.langer@gmail.com>
Date:   Mon, 18 Sep 2017 02:47:48 +0300

Set WORKON_HOME only if it exists

Diffstat:
Mdotfiles.org | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/dotfiles.org b/dotfiles.org @@ -246,8 +246,10 @@ You might find mirrors in the following addresses: fi # For pipenv and virtualenvwrapper - export WORKON_HOME="$HOME/.virtualenvs" - export VIRTUALENVWRAPPER_PYTHON="/usr/bin/python3.6" + if [ -d "$HOME/.virtualenvs" ]; then + export WORKON_HOME="$HOME/.virtualenvs" + fi + #export VIRTUALENVWRAPPER_PYTHON="/usr/bin/python3.6" if [ -f "$HOME/.local/binvirtualenvwrapper_lazy.sh" ]; then # shellcheck source=.local/bin/virtualenvwrapper_lazy.sh source "$HOME/.local/bin/virtualenvwrapper_lazy.sh"