From 1e8276d18c57cd28cb524018a37a36a713dcc4b7 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 12 Oct 2016 06:26:27 +0300 Subject: [PATCH] .shellrc: minor refactoring Move pyenv init and virtualenvwrapper under $BASH_VERSION test. --- .shellrc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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 -- 2.39.2