Avoid 'title:parse error' with single quotes in $CMD
Fixes #2182
Diff
1diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh
2index 623bf1f0985fda297024cab089313ca7305c6e5e..5f2fe63d422f6b0df580092fe8c51f0d67ed9fe6 100644
3--- a/lib/termsupport.zsh
4+++ b/lib/termsupport.zsh
5@@ -28,7 +28,7 @@ function omz_termsupport_preexec {
6 setopt extended_glob
7 local CMD=${1[(wr)^(*=*|sudo|ssh|rake|-*)]} #cmd name only, or if this is sudo or ssh, the next cmd
8 local LINE="${2:gs/%/%%}"
9- title "$CMD" '%100>...>$LINE%<<'
10+ title '$CMD' '%100>...>$LINE%<<'
11 }
1213 autoload -U add-zsh-hook