From a951600b4e81d73d71a098e48aa8d296be853bc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Cornell=C3=A0?= Date: Mon, 16 Dec 2013 09:24:24 +0100 Subject: [PATCH] Avoid 'title:parse error' with single quotes in $CMD Fixes #2182 --- lib/termsupport.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh index 623bf1f0..5f2fe63d 100644 --- a/lib/termsupport.zsh +++ b/lib/termsupport.zsh @@ -28,7 +28,7 @@ function omz_termsupport_preexec { setopt extended_glob local CMD=${1[(wr)^(*=*|sudo|ssh|rake|-*)]} #cmd name only, or if this is sudo or ssh, the next cmd local LINE="${2:gs/%/%%}" - title "$CMD" '%100>...>$LINE%<<' + title '$CMD' '%100>...>$LINE%<<' } autoload -U add-zsh-hook