From: Oleg Broytman Date: Wed, 28 Sep 2016 20:24:03 +0000 (+0300) Subject: .shellrc: source virtualenvwrapper from the PATH X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=59b5065470238a87b4ea86a620d55d17b604c5e8;p=dotfiles.git .shellrc: source virtualenvwrapper from the PATH virtualenvwrapper can be anywhere - in /usr/bin, /usr/local/bin, etc. --- diff --git a/.shellrc b/.shellrc index 6e2fa05..fa8fa95 100644 --- a/.shellrc +++ b/.shellrc @@ -348,10 +348,7 @@ fi # eval "`pyenv virtualenv-init -`" #fi -if [ -f /usr/local/bin/virtualenvwrapper_lazy.sh ]; then - source /usr/local/bin/virtualenvwrapper_lazy.sh -fi - +source virtualenvwrapper_lazy.sh 2>/dev/null if [ "$SHLVL" -eq 1 ] && which startx >/dev/null 2>&1; then X() { startx >> .Xserver.log 2>&1; cyr; }