[screen] commande name for title

This commit is contained in:
Mathieu Maret 2010-04-22 15:25:14 +02:00
parent 3d581abf3a
commit ed03a861df
2 changed files with 23 additions and 3 deletions

View File

@ -20,7 +20,7 @@
# SCREEN SETTINGS
# ------------------------------------------------------------------------------
#startup_message off
startup_message off
#nethack on
#defflow on # will force screen to process ^S/^Q
@ -62,11 +62,11 @@ bind } history
termcapinfo vt100 dl=5\E[M
# caption always "%3n %t%? (%u)%?%?: %h%?"
# turn sending of screen messages to hardstatus off
hardstatus off
#hardstatus off
# Set the hardstatus prop on gui terms to set the titlebar/icon title
termcapinfo xterm*|rxvt*|kterm*|Eterm* hs:ts=\E]0;:fs=\007:ds=\E]0;\007
# use this for the hard status string
hardstatus string "%h%? users: %u%?"
#hardstatus string "%h%? users: %u%?"
# An alternative hardstatus to display a bar at the bottom listing the
# windownames and highlighting the current windowname in blue. (This is only
@ -106,5 +106,9 @@ termcapinfo xterm|xterms|xs|rxvt ti@:te@
#hardstatus on
#hardstatus alwayslastline
#hardstatus string "%w%=%m/%d %c"
hardstatus off
hardstatus alwayslastline "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G} [${USER}@%H] %l%{..Y} %m/%d %c"
#Set windows title : cf ~/.zsh/20_fancy.zsh
aclchg :window: -rwx #?
aclchg :window: +x title

16
.zsh/20_fancy.zsh Normal file
View File

@ -0,0 +1,16 @@
#thx to matthew loar for that!
if [[ $TERM == "screen" ]]; then
function precmd {
#prompt_adam1_precmd
echo -ne "\033]83;title zsh\007"
}
function preexec {
local foo="$2 "
local bar=${${=foo}[1]}
echo -ne "\033]83;title $bar\007"
}
fi