From 0f61bfd98dfddc348665e0b3f6925de747c08cb6 Mon Sep 17 00:00:00 2001 From: ncanceill Date: Sat, 8 Mar 2014 15:28:16 +0100 Subject: [PATCH] reverted termsupport back to upstream --- lib/termsupport.zsh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh index 6eba8f69a..80319e1a8 100644 --- a/lib/termsupport.zsh +++ b/lib/termsupport.zsh @@ -27,8 +27,9 @@ 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}" - title "$CMD" '%100>...>$LINE%<<' + local LINE="${2:gs/$/\\$}" + LINE="${LINE:gs/%/%%}" + title "$CMD" "%100>...>$LINE%<<" } autoload -U add-zsh-hook