summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--01_Functions.zsh5
1 files changed, 4 insertions, 1 deletions
diff --git a/01_Functions.zsh b/01_Functions.zsh
index fc49635..b2d8dfc 100644
--- a/01_Functions.zsh
+++ b/01_Functions.zsh
@@ -47,7 +47,10 @@ term_title()
print -Pn "\e]2;[SCREEN #n] ?u(u) ?%n@%m (%l) %~$@\a" # Sets hardstatus line (term title)
# caption
[ $# -gt 0 ] && shift # discards the first arg, which is the separator, if any
- print -Pn "\ek${@:-%~}\e\\"
+ print -Pn "\ek"
+ [ "$SUDO_USER" != "" ] && print -Pn "($USER) "
+ print -Pn "${@:-%~}"
+ print -Pn "\e\\"
;;
*)
;;