aboutsummaryrefslogtreecommitdiff
path: root/bash/.bashrc
diff options
context:
space:
mode:
Diffstat (limited to 'bash/.bashrc')
-rw-r--r--bash/.bashrc4
1 files changed, 1 insertions, 3 deletions
diff --git a/bash/.bashrc b/bash/.bashrc
index 50d8206..49dc3e3 100644
--- a/bash/.bashrc
+++ b/bash/.bashrc
@@ -4,9 +4,7 @@
host=`hostname`
if [ $host = "automatix" ] || [ $host = "asterix" ]; then
- if [ -z "$STY" ]; then
- exec screen -R
- fi
+ [ -z "$TMUX" ] && { tmux attach || exec tmux new && exit; }
fi
if [[ -z $DISPLAY && $XDG_VTNR -eq 1 ]]; then