summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2014-03-08 14:30:55 -0800
committerRobby Russell <robby@planetargon.com>2014-03-08 14:30:55 -0800
commit48579ebf2bff8d41cd36f8eae72d526f2a9e1864 (patch)
tree3959af11e29a0795046440f078151c10d19fee4d
parenta811ab0ba7f6915cce376ec6b2a7180ee1d04d5f (diff)
parenta951600b4e81d73d71a098e48aa8d296be853bc9 (diff)
downloadzsh-48579ebf2bff8d41cd36f8eae72d526f2a9e1864.tar.gz
zsh-48579ebf2bff8d41cd36f8eae72d526f2a9e1864.tar.bz2
zsh-48579ebf2bff8d41cd36f8eae72d526f2a9e1864.zip
Merge pull request #2341 from mcornella/title_backticks
Avoid evaluating special chars in $LINE on title command (fixes #2234)
-rw-r--r--lib/termsupport.zsh5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh
index 80319e1a8..5f2fe63d4 100644
--- a/lib/termsupport.zsh
+++ b/lib/termsupport.zsh
@@ -27,9 +27,8 @@ 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
- local LINE="${2:gs/$/\\$}"
- LINE="${LINE:gs/%/%%}"
- title "$CMD" "%100>...>$LINE%<<"
+ local LINE="${2:gs/%/%%}"
+ title '$CMD' '%100>...>$LINE%<<'
}
autoload -U add-zsh-hook