Permalink
Browse files

Merge pull request #1341 from markusscherer/master

fix title setting bug in xterm and urxvt
  • Loading branch information...
2 parents e10552b + 43bd46b commit b2b77be56f35a9753e7491fd88b3c4b7ec74c586 @robbyrussell committed Dec 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/termsupport.zsh
View
@@ -27,7 +27,7 @@ function omz_termsupport_preexec {
emulate -L zsh
setopt extended_glob
local CMD=${1[(wr)^(*=*|sudo|ssh|-*)]} #cmd name only, or if this is sudo or ssh, the next cmd
- title "$CMD" "%100>...>$2%<<"
+ title "$CMD" "%100>...>${2:gs/%/%%}%<<"
}
autoload -U add-zsh-hook

0 comments on commit b2b77be

Please sign in to comment.