]> git.rmz.io Git - dotfiles.git/blobdiff - zsh/lib/title.zsh
zsh: fix title
[dotfiles.git] / zsh / lib / title.zsh
index c58da48aad6770612534146df2774b06a785d80a..118daa2bd69c108e6ab7c2dbe0b3b293c612ebc0 100644 (file)
@@ -11,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  {}