From 61e86f1b1ddaf2c9c539a2529fa03284d5241be2 Mon Sep 17 00:00:00 2001 From: viktorbarzin Date: Sat, 22 Aug 2020 13:09:27 +0100 Subject: [PATCH] source virtualenv wrapper only if it exists --- .zshenv | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.zshenv b/.zshenv index be1c1ae..822eff8 100644 --- a/.zshenv +++ b/.zshenv @@ -12,4 +12,6 @@ export VIRTUALENV_PYTHON=python3 export WORKON_HOME=$HOME/.virtualenvs # export VIRTUALENV_PYTHON=python -source /home/viktor/.virtualenvwrapper.sh +if [ -f $HOME/.virtualenvwrapper.sh ]; then + source $HOME/.virtualenvwrapper.sh +fi