]> git.phdru.name Git - dotfiles.git/commitdiff
.shellrc: source virtualenvwrapper from the PATH
authorOleg Broytman <phd@phdru.name>
Wed, 28 Sep 2016 20:24:03 +0000 (23:24 +0300)
committerOleg Broytman <phd@phdru.name>
Wed, 28 Sep 2016 20:24:03 +0000 (23:24 +0300)
virtualenvwrapper can be anywhere - in /usr/bin, /usr/local/bin, etc.

.shellrc

index 6e2fa0532e4fd55ade495f8137b556b25e1dc78a..fa8fa9536ec3a53614f2054cfd3766f76f2cb6fc 100644 (file)
--- 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; }