From 2de801241149fcc7b46feef3d63f3f0278781464 Mon Sep 17 00:00:00 2001 From: James Bunton Date: Thu, 27 Oct 2016 02:36:39 +1100 Subject: [PATCH] screenrc rewrite - more useful hardstatus line - start window number at 1 - C-z as escape instead of C-a --- .screenrc | 22 +++++++++------------- .vim/display.vim | 2 ++ 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/.screenrc b/.screenrc index 1f4c2d4..34e08e3 100644 --- a/.screenrc +++ b/.screenrc @@ -1,19 +1,15 @@ -startup_message off altscreen on defbce on +defscrollback 10000 +escape ^Zz shelltitle "$ |bash" -term 'screen-s' +startup_message off vbell off -defscrollback 10000 - -# Display a line at the bottom with hostname, window titles & time -caption always '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%? %?%= %{g}][%{B} %l %{W}%c %{g}]' - -# Always send backspace as ^?, which is consistent with the bundled terminfo -bindkey -k kb stuff ^? -# 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 +caption always '%{= kW}%Lw %{R}| %{kG}%h %= %?%{R}| %{kM}%Ppaste %?%?%{R}| %{kM}%EC-z %?%{R}| %{kB}%0c' -# Fix alternate screen support, for some reason this doesn't get read from terminfo correctly -termcapinfo xterm* ti=\E[?1049h:te=\E[?1049l +# Start from window 1 +bind c screen 1 +bind ^c screen 1 +bind 0 select 10 +screen 1 \ No newline at end of file diff --git a/.vim/display.vim b/.vim/display.vim index 0456e6f..12c478d 100644 --- a/.vim/display.vim +++ b/.vim/display.vim @@ -27,6 +27,8 @@ set showmatch " Show the filename title in xterms set title +set t_ts=]0; +set t_fs= " Make the autocompletion of filenames,etc behave like bash set wildmode=longest,list -- 2.39.2