From cd1720e8f91f860b7641d1c5c4503a60909c2a14 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Fri, 13 Feb 2009 12:14:43 +0100 Subject: [TERM TITLE] updates managment of term title for screen --- 01_Functions.zsh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to '01_Functions.zsh') diff --git a/01_Functions.zsh b/01_Functions.zsh index 7c8ac0b..534c2ed 100644 --- a/01_Functions.zsh +++ b/01_Functions.zsh @@ -27,14 +27,15 @@ term_title() [[ -t 1 ]] && case $TERM in sun-cmd) - print -Pn "\e]l%n@%m %~$1\e\\" # Never tested.. + print -Pn "\e]l%n@%m %~$@\e\\" # Never tested.. ;; *term*|rxvt*|putty) - print -Pn "\e]0;%n@%m (%l) %~$1\a" # Sets term title + print -Pn "\e]0;%n@%m (%l) %~$@\a" # Sets term title ;; screen) - print -Pn "\e]2;[SCREEN] %n@%m (%l) %~$1\a" # Sets term title - print -Pn "\ek%n@%m (%l) %~$1\e\\" # Sets screen title + print -Pn "\e]2;[SCREEN #n] %n@%m (%l) %~$@\a" # Sets hardstatus line (term title) + [ $# -gt 0 ] && shift # discards separator + print -Pn "\ek${@:-%n@%m (%l) %~}\e\\" # Sets screen title ;; *) ;; -- cgit v1.2.3