]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - zsh/rc
zsh/rc: Fix window_title() if unknown TERM is used.
[config/dotfiles.git] / 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.