From: Simon Ruderich Date: Tue, 30 Mar 2010 22:30:42 +0000 (+0200) Subject: zsh/rc: Fix window_title() if unknown TERM is used. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=17c4bdffc7d5914f39932f4b2cb1a0791d227a00;p=config%2Fdotfiles.git zsh/rc: Fix window_title() if unknown TERM is used. --- 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.