]> git.rmz.io Git - dotfiles.git/blobdiff - zsh/lib/title.zsh
zsh: default to empty title hooks
[dotfiles.git] / zsh / lib / title.zsh
index 09c59475b25e6abd6513d2c9ad31765c2c25e10d..18fe7e2e0041f1cceaf064c966596fc2d26c613f 100644 (file)
@@ -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