From cec486e03d7d9f64d322ac840b844a36b271e60b Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Mon, 1 Feb 2016 22:37:39 +0000 Subject: [PATCH] zsh: fix title --- zsh/lib/title.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/lib/title.zsh b/zsh/lib/title.zsh index c58da48..118daa2 100644 --- a/zsh/lib/title.zsh +++ b/zsh/lib/title.zsh @@ -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 {} -- 2.48.1