From 2f68eedb2cbba954ddc59d8ea29b52e924a188c5 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Wed, 7 Jan 2015 17:56:06 +0000 Subject: [PATCH] zsh: default to empty title hooks --- zsh/lib/title.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zsh/lib/title.zsh b/zsh/lib/title.zsh index 09c5947..18fe7e2 100644 --- a/zsh/lib/title.zsh +++ b/zsh/lib/title.zsh @@ -9,6 +9,10 @@ case "$TERM" in function title_precmd { title "${(%):-[%n@%m] %~}" } function title_preexec { title "$1" } ;; + (*) + function title_precmd {} + function title_preexec {} + ;; esac autoload -U add-zsh-hook -- 2.48.1