Fix screen/bash recursing infinitely when screen is 256-color version
authorDavid Kerkeslager <kerkeslager@gmail.com>
Sat, 6 Jun 2020 15:45:11 +0000 (11:45 -0400)
committerDavid Kerkeslager <kerkeslager@gmail.com>
Sat, 6 Jun 2020 15:45:11 +0000 (11:45 -0400)
.bashrc

diff --git a/.bashrc b/.bashrc
index 68849f7..fa3de8c 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -86,7 +86,7 @@ fi
 
 # Automatically open screen.
 # The if statement prevents it from recursing (since screen opens bash).
-if [ $TERM != screen ]; then
+if [ $TERM != screen ] && [ $TERM != screen.xterm-256color ] ; then
        screen
 fi