]> git.rmz.io Git - dotfiles.git/blobdiff - zsh/lib/title.zsh
xdg: add user-dirs.dirs
[dotfiles.git] / zsh / lib / title.zsh
index 18fe7e2e0041f1cceaf064c966596fc2d26c613f..118daa2bd69c108e6ab7c2dbe0b3b293c612ebc0 100644 (file)
@@ -1,3 +1,7 @@
+if [[ "$TERM" == "linux" ]]; then
+    return
+fi
+
 function title {
   local tmp
   tmp=(${(f)*})
@@ -7,7 +11,7 @@ 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  {}