diff options
author | Adrian Kummerlaender | 2017-05-06 15:41:42 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2017-05-06 15:50:10 +0200 |
commit | 8cbd4237a72c4a35cce9189e84ef8090bd486b22 (patch) | |
tree | 519f5a405d87f28b00ff334b9d3640ebb96cfca7 /bash | |
parent | 505761243109d3255a77dbaeb6d8e0a4f61eb045 (diff) | |
download | dotfiles-8cbd4237a72c4a35cce9189e84ef8090bd486b22.tar dotfiles-8cbd4237a72c4a35cce9189e84ef8090bd486b22.tar.gz dotfiles-8cbd4237a72c4a35cce9189e84ef8090bd486b22.tar.bz2 dotfiles-8cbd4237a72c4a35cce9189e84ef8090bd486b22.tar.lz dotfiles-8cbd4237a72c4a35cce9189e84ef8090bd486b22.tar.xz dotfiles-8cbd4237a72c4a35cce9189e84ef8090bd486b22.tar.zst dotfiles-8cbd4237a72c4a35cce9189e84ef8090bd486b22.zip |
Switch SSH sessions from `screen` to `tmux`
Diffstat (limited to 'bash')
-rw-r--r-- | bash/.bashrc | 4 |
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 |