summaryrefslogtreecommitdiff
path: root/01_Functions.zsh
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2010-08-19 11:00:52 +0200
committerHugues Hiegel <hugues@hiegel.fr>2010-08-19 11:00:52 +0200
commit96d4ec53ff2faafa47da96b63c99841507dbd45e (patch)
treee67c4c16d148526237a6a6b77df71409b66c52bc /01_Functions.zsh
parent02df6c7f9f5a909895945fbccff481d4a52498b9 (diff)
Revert "[Funcs] get a title even in tmux..."
=> Set tmux to do automatic-rename, and to disallow titles.
Diffstat (limited to '01_Functions.zsh')
-rw-r--r--01_Functions.zsh10
1 files changed, 5 insertions, 5 deletions
diff --git a/01_Functions.zsh b/01_Functions.zsh
index 1cc5d01..f6c99bf 100644
--- a/01_Functions.zsh
+++ b/01_Functions.zsh
@@ -62,12 +62,12 @@ term_title()
# hardstatus
#print -Pn "\e]2;{+b W}SCREEN #n {-b W}| {R}?u(u) ?{W}{r}%n@%m{W} ({c}%l{W}) {R}%~{W}${_sep:+$_sep \{+b Y\}}$@{-b W}\a" # Sets hardstatus line (term title)
print -Pn "\e]2;{R}?u(u) ?{W}{r}%n{R}@{r}%m{-b W} ({+b c}%l{-b W}) {R}%~{W}${_sep:+$_sep \{+b Y\}}$@{-b W}\a" # Sets hardstatus line (term title)
+ # caption
+ print -Pn "\ek"
+ [ "$SUDO_USER" != "" ] && print -Pn "($USER) "
+ print -Pn "${@:-%~}"
+ print -Pn "\e\\"
fi
- # caption
- print -Pn "\ek"
- [ "$SUDO_USER" != "" ] && print -Pn "($USER) "
- print -Pn "${@:-%~}"
- print -Pn "\e\\"
;;
*)
;;