[screen] commande name for title
This commit is contained in:
parent
3d581abf3a
commit
ed03a861df
10
.screenrc
10
.screenrc
@ -20,7 +20,7 @@
|
|||||||
# SCREEN SETTINGS
|
# SCREEN SETTINGS
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
#startup_message off
|
startup_message off
|
||||||
#nethack on
|
#nethack on
|
||||||
|
|
||||||
#defflow on # will force screen to process ^S/^Q
|
#defflow on # will force screen to process ^S/^Q
|
||||||
@ -62,11 +62,11 @@ bind } history
|
|||||||
termcapinfo vt100 dl=5\E[M
|
termcapinfo vt100 dl=5\E[M
|
||||||
# caption always "%3n %t%? (%u)%?%?: %h%?"
|
# caption always "%3n %t%? (%u)%?%?: %h%?"
|
||||||
# turn sending of screen messages to hardstatus off
|
# 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
|
# 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
|
termcapinfo xterm*|rxvt*|kterm*|Eterm* hs:ts=\E]0;:fs=\007:ds=\E]0;\007
|
||||||
# use this for the hard status string
|
# 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
|
# An alternative hardstatus to display a bar at the bottom listing the
|
||||||
# windownames and highlighting the current windowname in blue. (This is only
|
# 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 on
|
||||||
#hardstatus alwayslastline
|
#hardstatus alwayslastline
|
||||||
#hardstatus string "%w%=%m/%d %c"
|
#hardstatus string "%w%=%m/%d %c"
|
||||||
|
hardstatus off
|
||||||
hardstatus alwayslastline "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G} [${USER}@%H] %l%{..Y} %m/%d %c"
|
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
16
.zsh/20_fancy.zsh
Normal 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
|
Loading…
Reference in New Issue
Block a user