summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2012-12-02 12:27:04 -0800
committerRobby Russell <robby@planetargon.com>2012-12-02 12:27:04 -0800
commitb2b77be56f35a9753e7491fd88b3c4b7ec74c586 (patch)
treef334637987897717ca9fc0d4d4363b38454903c0 /lib
parente10552b4038e98eecf789eb9eaecf6e8318c474b (diff)
parent43bd46b780cdf60b318f452e40b893ae18e77c41 (diff)
downloadzsh-b2b77be56f35a9753e7491fd88b3c4b7ec74c586.tar.gz
zsh-b2b77be56f35a9753e7491fd88b3c4b7ec74c586.tar.bz2
zsh-b2b77be56f35a9753e7491fd88b3c4b7ec74c586.zip
Merge pull request #1341 from markusscherer/master
fix title setting bug in xterm and urxvt
Diffstat (limited to 'lib')
-rw-r--r--lib/termsupport.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh
index e26fef6d3..4701e46c5 100644
--- a/lib/termsupport.zsh
+++ b/lib/termsupport.zsh
@@ -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