From 8cbd4237a72c4a35cce9189e84ef8090bd486b22 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 6 May 2017 15:41:42 +0200 Subject: Switch SSH sessions from `screen` to `tmux` --- bash/.bashrc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'bash') 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 -- cgit v1.2.3