]> git.rmz.io Git - dotfiles.git/commitdiff
zsh: fix title
authorSamir Benmendil <me@rmz.io>
Mon, 1 Feb 2016 22:37:39 +0000 (22:37 +0000)
committerSamir Benmendil <me@rmz.io>
Mon, 1 Feb 2016 22:49:49 +0000 (22:49 +0000)
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  {}