diff options
author | Marc Cornellà <marc.cornella@live.com> | 2013-12-16 09:24:24 +0100 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2014-02-21 22:16:12 +0100 |
commit | a951600b4e81d73d71a098e48aa8d296be853bc9 (patch) | |
tree | bd501ac0041bbb58c203ab1227134ec65816ef39 | |
parent | 3e5de21dc5b71e332a1526ae14beb662a66d6e26 (diff) | |
download | zsh-a951600b4e81d73d71a098e48aa8d296be853bc9.tar.gz zsh-a951600b4e81d73d71a098e48aa8d296be853bc9.tar.bz2 zsh-a951600b4e81d73d71a098e48aa8d296be853bc9.zip |
Avoid 'title:parse error' with single quotes in $CMD
Fixes #2182
-rw-r--r-- | lib/termsupport.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh index 623bf1f09..5f2fe63d4 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 |