]> git.rmz.io Git - dotfiles.git/commitdiff
zsh: default to empty title hooks
authorSamir Benmendil <samir.benmendil@gmail.com>
Wed, 7 Jan 2015 17:56:06 +0000 (17:56 +0000)
committerSamir Benmendil <samir.benmendil@gmail.com>
Wed, 7 Jan 2015 17:56:06 +0000 (17:56 +0000)
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