]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
zsh/rc: don't start screen if $TERM = dialup
authorSimon Ruderich <simon@ruderich.org>
Sun, 14 Sep 2014 14:51:16 +0000 (16:51 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sun, 14 Sep 2014 14:51:16 +0000 (16:51 +0200)
screen fails to start on this terminal.

zsh/rc

diff --git a/zsh/rc b/zsh/rc
index 1a8c7994fd4abdee7d25bb6507d03060f7c0137a..c7a964e131ad074fc8c45788b71f3e63a768d08f 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
@@ -925,7 +925,8 @@ fi
 # If not already in screen or tmux, reattach to a running session or create a
 # new one. This also starts screen/tmux on a remote server when connecting
 # through ssh.
-if [[ $TERM != dumb && $TERM != linux && -z $STY && -z $TMUX ]]; then
+if [[ $TERM != dumb && $TERM != dialup && $TERM != linux
+        && -z $STY && -z $TMUX ]]; then
     # Get running detached sessions.
     if [[ $zshrc_use_multiplexer = screen ]]; then
         session=$(screen -list | grep 'Detached' | awk '{ print $1; exit }')