From 696efe64dbedd7ce79d775514daad8becbf54b4d Mon Sep 17 00:00:00 2001 From: "kujiu (@angua.kujiu.org)" Date: Sat, 10 Dec 2016 12:55:11 +0100 Subject: [PATCH] Fix zsh auto-activate venv --- common/.zshrc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/.zshrc b/common/.zshrc index a47ac21..c619f0e 100644 --- a/common/.zshrc +++ b/common/.zshrc @@ -80,15 +80,15 @@ export VISUAL="vim" function cd() { builtin cd $@; - if [ -f env/bin/activate ] + if [ -f venv/bin/activate ] then - source env/bin/activate + source venv/bin/activate elif [ -f bin/activate ] then source bin/activate - elif [ -f ../env/bin/activate ] + elif [ -f ../venv/bin/activate ] then - source ../env/bin/activate + source ../venv/bin/activate fi }