From d34a6d306a7dc9e8e0c7d938dae034fb711f70d5 Mon Sep 17 00:00:00 2001 From: cherti Date: Fri, 31 Jul 2015 02:36:44 +0200 Subject: [PATCH] changing some single quotes to double quotes changing some single quotes to double quotes, because with single quotes the variable does not get expanded and the terminal title ends up being '$LINE' instead of the actual command run. With double quotes the variable expansion takes place as desired. --- lib/termsupport.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh index e1c2e2f93..88cff7315 100644 --- a/lib/termsupport.zsh +++ b/lib/termsupport.zsh @@ -46,7 +46,7 @@ function omz_termsupport_preexec { local CMD=${1[(wr)^(*=*|sudo|ssh|rake|-*)]:gs/%/%%} local LINE="${2:gs/%/%%}" - title '$CMD' '%100>...>$LINE%<<' + title "$CMD" "%100>...>$LINE%<<" } precmd_functions+=(omz_termsupport_precmd)