]> git.phdru.name Git - dotfiles.git/commitdiff
Moved pyenv config from `.profile` to `.bashrc`
authorOleg Broytman <phd@phdru.name>
Sat, 22 Jul 2023 11:59:10 +0000 (14:59 +0300)
committerOleg Broytman <phd@phdru.name>
Sat, 22 Jul 2023 11:59:10 +0000 (14:59 +0300)
Shell integration should be configured in every interactive shell.

.bashrc
.profile

diff --git a/.bashrc b/.bashrc
index f516a374c36abd98560693fb7bfb4ed4247152fb..a9ac99de919a16f7142387c4f53d43d5a76fcb5f 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -170,10 +170,18 @@ if type -p pip >/dev/null 2>&1 || type -p pip3 >/dev/null 2>&1; then
     complete -F _pip_completion_loader pip pip2 pip2.7 pip3 pip3.4 pip3.5 pip3.6 pip3.7 pip3.8 pip3.9 pip3.10 pip3.11
 fi
 
-#if which pyenv >/dev/null 2>&1; then
-#   eval "`pyenv init -`"
-#   eval "`pyenv virtualenv-init -`"
-#fi
+if test -d "$HOME"/.pyenv
+then
+    PYENV_ROOT="$HOME"/.pyenv
+    export PYENV_ROOT
+    PATH="$PYENV_ROOT/bin:$PATH"
+    if which pyenv >/dev/null 2>&1; then
+#        eval "`pyenv init --path`"
+        eval "`pyenv init -`"
+        eval "`pyenv virtualenv-init -`"
+    fi
+fi
+
 
 . virtualenvwrapper_lazy.sh 2>/dev/null
 
index 7e6ba5a93a2bdea01778c766baf3638e2fde149d..45b4a5686487f2e0558fbdc18e5db1ad525e728c 100644 (file)
--- a/.profile
+++ b/.profile
@@ -146,6 +146,9 @@ if [ -t 0 ] ; then
             MAILPATH="$MAILPATH:`echo $HOME/mail/lists/* | sed 's/ /:/g'`"
     fi
     export MAIL MAILPATH
+    if [ -n "$STY" -a "$WINDOW" != 0 ]; then
+        unset MAILCHECK
+    fi
 
     BROWSER="links2:links:elinks:w3m:lynx"
     case "$TERM" in
@@ -203,13 +206,6 @@ if [ -t 0 ] ; then
 
     unset name email
 
-    #if which pyenv >/dev/null 2>&1; then
-    #   PYENV_ROOT="$HOME/.pyenv"
-    #   export PYENV_ROOT
-    #   PATH="$PYENV_ROOT/bin:$PATH"
-    #   eval "`pyenv init --path`"
-    #fi
-
     #SCREENDIR="$HOME"/tmp/screen
     #export SCREENDIR
     #mkdir -p "$SCREENDIR"