From 17c4bdffc7d5914f39932f4b2cb1a0791d227a00 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Wed, 31 Mar 2010 00:30:42 +0200 Subject: [PATCH] zsh/rc: Fix window_title() if unknown TERM is used. --- zsh/rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zsh/rc b/zsh/rc index 228233b..7ccbe91 100644 --- 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. -- 2.44.2