Revert ".profile: Start `screen` on interactive login shell"
authorOleg Broytman <phd@phdru.name>
Sun, 24 May 2020 02:20:02 +0000 (05:20 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 24 May 2020 02:20:36 +0000 (05:20 +0300)
This reverts commits
542f2a97ae5094eb88116ffa02fc441ba95dae47,
41c57a5fd1cf36e9115e8904c068b5777a49ba3e,
c5d595d83cab2e180a71bc65b9e4a8a2f71772db.

.profile

index 5818850..c287c85 100644 (file)
--- a/.profile
+++ b/.profile
@@ -303,17 +303,3 @@ fi
 #
 #    fi
 # fi
-
-# If not running interactively, don't do anything
-case $- in
-    *i*) ;;
-      *) return ;;
-esac
-
-# Stop if non-interactive shell
-[ -z "$PS1" ] && return
-
-if [ -n "$SSH_CONNECTION" -a -z "$STY" -a -t 0 -a -x /usr/bin/screen ]
-then
-   exec /usr/bin/screen -xRR -S default
-fi