diff options
author | Robby Russell <robby@planetargon.com> | 2014-03-27 21:31:04 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2014-03-27 21:31:04 -0700 |
commit | 175310ae271364ceb5289a14284b1787677abc33 (patch) | |
tree | 7e80103de48266d3231af264abbc65848c9a7ecc | |
parent | ae0c6507e41f8ab24b3dec13374ea22ed565a7d9 (diff) | |
parent | 5137e0e509ae4d6534be132d614d43ea53d8a4e4 (diff) | |
download | zsh-175310ae271364ceb5289a14284b1787677abc33.tar.gz zsh-175310ae271364ceb5289a14284b1787677abc33.tar.bz2 zsh-175310ae271364ceb5289a14284b1787677abc33.zip |
Merge pull request #2661 from mcornella/fix_title_tab_percent
Fix escaping of $CMD of automatic title
-rw-r--r-- | lib/termsupport.zsh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh index 5f2fe63d4..9c0a430fb 100644 --- a/lib/termsupport.zsh +++ b/lib/termsupport.zsh @@ -26,8 +26,11 @@ function omz_termsupport_precmd { function omz_termsupport_preexec { emulate -L zsh setopt extended_glob - local CMD=${1[(wr)^(*=*|sudo|ssh|rake|-*)]} #cmd name only, or if this is sudo or ssh, the next cmd + + # cmd name only, or if this is sudo or ssh, the next cmd + local CMD=${1[(wr)^(*=*|sudo|ssh|rake|-*)]:gs/%/%%} local LINE="${2:gs/%/%%}" + title '$CMD' '%100>...>$LINE%<<' } |