]> git.rmz.io Git - dotfiles.git/blobdiff - zsh/lib/title.zsh
mutt: fix F macro to not write message to home
[dotfiles.git] / zsh / lib / title.zsh
index 09c59475b25e6abd6513d2c9ad31765c2c25e10d..118daa2bd69c108e6ab7c2dbe0b3b293c612ebc0 100644 (file)
@@ -1,3 +1,7 @@
+if [[ "$TERM" == "linux" ]]; then
+    return
+fi
+
 function title {
   local tmp
   tmp=(${(f)*})
@@ -7,7 +11,11 @@ function title {
 case "$TERM" in
   (*xterm*|rxvt*)
     function title_precmd  { title "${(%):-[%n@%m] %~}" }
-    function title_preexec { title "$1" }
+    function title_preexec { title "${(%):-[%n@%m]} $1" }
+  ;;
+  (*)
+    function title_precmd  {}
+    function title_preexec {}
   ;;
 esac