aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bash/.bashrc8
1 files changed, 8 insertions, 0 deletions
diff --git a/bash/.bashrc b/bash/.bashrc
index eb33c7a..50d8206 100644
--- a/bash/.bashrc
+++ b/bash/.bashrc
@@ -1,6 +1,14 @@
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
+host=`hostname`
+
+if [ $host = "automatix" ] || [ $host = "asterix" ]; then
+ if [ -z "$STY" ]; then
+ exec screen -R
+ fi
+fi
+
if [[ -z $DISPLAY && $XDG_VTNR -eq 1 ]]; then
exec startx
fi