From: Oleg Broytman Date: Wed, 12 Oct 2016 03:26:27 +0000 (+0300) Subject: .shellrc: minor refactoring X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=1e8276d18c57cd28cb524018a37a36a713dcc4b7;p=dotfiles.git .shellrc: minor refactoring Move pyenv init and virtualenvwrapper under $BASH_VERSION test. --- diff --git a/.shellrc b/.shellrc index 728714d..1302818 100644 --- a/.shellrc +++ b/.shellrc @@ -154,6 +154,13 @@ if test -n "$BASH_VERSION"; then # rm -rf /tmp/pip_build_"$USER" #fi + #if which pyenv >/dev/null 2>&1; then + # eval "`pyenv init -`" + # eval "`pyenv virtualenv-init -`" + #fi + + source virtualenvwrapper_lazy.sh 2>/dev/null + elif test -n "$KSH_VERSION" -o -n "$FCEDIT"; then back() { cd - "$@"; } j() { jobs; } @@ -344,13 +351,6 @@ if which tmux >/dev/null 2>&1; then fi -#if which pyenv >/dev/null 2>&1; then -# eval "`pyenv init -`" -# eval "`pyenv virtualenv-init -`" -#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; } fi