summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@qosmos.com>2013-09-27 16:59:24 +0200
committerHugues Hiegel <hugues.hiegel@qosmos.com>2013-09-27 16:59:24 +0200
commite65d78f271e3d15bebb32384e996224b1c01d64b (patch)
treee971d8a85751cf280ac6c075fa044576385a8f68
parent4f33bf1187397cc139c3f12061c1fb4f024ad4cf (diff)
[Internal] Escapes ‘%’ in __term_title
-rw-r--r--01_Internal.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/01_Internal.zsh b/01_Internal.zsh
index 902556e..96ca330 100644
--- a/01_Internal.zsh
+++ b/01_Internal.zsh
@@ -52,7 +52,7 @@ __term_title()
print -Pn "\e]l%n@%m %~$@\e\\" # Never tested..
;;
*term*|rxvt*|putty)
- print -Pn "\e]0;%n@%m (%l) %~$@\a" # Sets term title
+ print -Pn "\e]0;%n@%m (%l) %~${@//%/%%}\a" # Sets term title
;;
screen*)
local _sep=""
@@ -61,7 +61,7 @@ __term_title()
#then
# Tmux
#print -Pn "\e]0;%n@%m (%l) %~${_sep:+$_sep #[fg=yellow,bold]}$@\a" # Sets term title
- print -Pn "\e]0;#[fg=red]%n#[fg=default,bold]@#[fg=red]%m#[default] (#[fg=cyan]%l#[fg=default]) #[fg=red]%~${_sep:+#[default,fg=default]$_sep #[fg=yellow,bold]$@}\a"
+ print -Pn "\e]0;#[fg=red]%n#[fg=default,bold]@#[fg=red]%m#[default] (#[fg=cyan]%l#[fg=default]) #[fg=red]%~${_sep:+#[default,fg=default]$_sep #[fg=yellow,bold]}$(echo $@|sed 's/%/%%/g')\a"
#else
# Classic screen
# hardstatus