From: Samir Benmendil Date: Wed, 7 Jan 2015 17:56:06 +0000 (+0000) Subject: zsh: default to empty title hooks X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/2f68eedb2cbba954ddc59d8ea29b52e924a188c5 zsh: default to empty title hooks --- 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