b2b77be56f35a9753e7491fd88b3c4b7ec74c586

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge pull request #1341 from markusscherer/master

fix title setting bug in xterm and urxvt 

Diff

 1diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh
 2index e26fef6d30d8a3f46e1fa4862c20626815743891..4701e46c5adf09990f450b3409c96d7198335590 100644
 3--- a/lib/termsupport.zsh
 4+++ b/lib/termsupport.zsh
 5@@ -27,7 +27,7 @@ function omz_termsupport_preexec {
 6   emulate -L zsh
 7   setopt extended_glob
 8   local CMD=${1[(wr)^(*=*|sudo|ssh|-*)]} #cmd name only, or if this is sudo or ssh, the next cmd
 9-  title "$CMD" "%100>...>$2%<<"
10+  title "$CMD" "%100>...>${2:gs/%/%%}%<<"
11 }
12 
13 autoload -U add-zsh-hook