diff options
author | Hugues Hiegel <hugues@hiegel.fr> | 2009-02-13 12:14:43 +0100 |
---|---|---|
committer | Hugues Hiegel <hugues@hiegel.fr> | 2009-02-13 12:14:43 +0100 |
commit | cd1720e8f91f860b7641d1c5c4503a60909c2a14 (patch) | |
tree | 3ba62304e56317ca2bed274bc773807ce54fb3c9 /01_Functions.zsh | |
parent | 6ed3ea832ff60a7cde93b128f21200824364d3e8 (diff) |
[TERM TITLE] updates managment of term title for screen
Diffstat (limited to '01_Functions.zsh')
-rw-r--r-- | 01_Functions.zsh | 9 |
1 files changed, 5 insertions, 4 deletions
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 ;; *) ;; |