]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - zsh/rc
zsh/rc: Don't start screen on the Linux console.
[config/dotfiles.git] / zsh / rc
diff --git a/zsh/rc b/zsh/rc
index f9b13b0d615e82fb7d7f03fdcd9fe9c24af3c7f6..2a3ff4c34622a7840a5a070e165a475f7cae77e6 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
@@ -492,6 +492,11 @@ zstyle ':completion:*:(mv|cp):*' ignore-line no
 # simpler. Thanks to Nomexous in #zsh on Freenode (2010-03-16 01:54)
 zstyle ':completion:*:*:-command-:*' ignored-patterns './config.*'
 
+# Don't complete unwanted files with Vim. Thanks to Nomexous in #zsh on
+# Freenode (2010-06-06 04:54 CEST). See below to complete them.
+zstyle ':completion:*:*:vim:*:all-files' ignored-patterns '*.aux' '*.log' \
+                                                          '*.pdf' '*.class'
+
 # Provide a fallback completer which always completes files. Useful when Zsh's
 # completion is too "smart". Thanks to Frank Terbeck <ft@bewatermyfriend.org>
 # (http://www.zsh.org/mla/users/2009/msg01038.html).
@@ -612,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 [[ $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 }')