]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
zsh/rc: Don't start screen on the Linux console.
authorSimon Ruderich <simon@ruderich.org>
Sun, 31 Oct 2010 17:53:13 +0000 (18:53 +0100)
committerSimon Ruderich <simon@ruderich.org>
Sun, 31 Oct 2010 17:53:13 +0000 (18:53 +0100)
zsh/rc

diff --git a/zsh/rc b/zsh/rc
index 6367ff4c8f218bd1a37748cc7e415e35f8853047..2a3ff4c34622a7840a5a070e165a475f7cae77e6 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
@@ -617,7 +617,7 @@ source_config ~/.zsh/rc.local
 
 # If not already in screen reattach to a running session or create a new one.
 # This also starts screen one a remote server when connecting through ssh.
 
 # If not already in screen reattach to a running session or create a new one.
 # This also starts screen one a remote server when connecting through ssh.
-if [[ $TERM != dumb && -z $STY ]]; then
+if [[ $TERM != dumb && $TERM != linux && -z $STY ]]; then
     # Get running detached sessions.
     session=$(screen -list | grep 'Detached' | awk '{ print $1; exit }')
 
     # Get running detached sessions.
     session=$(screen -list | grep 'Detached' | awk '{ print $1; exit }')