summaryrefslogtreecommitdiff
path: root/01_Functions.zsh
diff options
context:
space:
mode:
Diffstat (limited to '01_Functions.zsh')
-rw-r--r--01_Functions.zsh9
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
;;
*)
;;