]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
zsh/rc: Fix window_title() if unknown TERM is used.
authorSimon Ruderich <simon@ruderich.org>
Tue, 30 Mar 2010 22:30:42 +0000 (00:30 +0200)
committerSimon Ruderich <simon@ruderich.org>
Tue, 30 Mar 2010 22:30:42 +0000 (00:30 +0200)
zsh/rc

diff --git a/zsh/rc b/zsh/rc
index 228233b5d48da404bf53d83f3dc762abc8baee88..7ccbe91e1766df634eedaf45b1a5a50c058cb1d3 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
@@ -347,6 +347,9 @@ if [[ $TERM == screen* || $TERM == xterm* || $TERM == rxvt* ]]; then
         window_title() {
             print -n "\e]2;$1\e\\"
         }
+    else
+        # Fallback if another TERM is used.
+        window_title() { }
     fi
 
     # Add the preexec() and precmd() hooks.