diff --git a/.screenrc b/.screenrc index 177700d..387f9df 100644 --- a/.screenrc +++ b/.screenrc @@ -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 diff --git a/.zsh/20_fancy.zsh b/.zsh/20_fancy.zsh new file mode 100644 index 0000000..82490e3 --- /dev/null +++ b/.zsh/20_fancy.zsh @@ -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