]> code.delx.au - dotfiles/commitdiff
screenrc rewrite
authorJames Bunton <jamesbunton@delx.net.au>
Wed, 26 Oct 2016 15:36:39 +0000 (02:36 +1100)
committerJames Bunton <jamesbunton@delx.net.au>
Thu, 27 Oct 2016 07:42:08 +0000 (18:42 +1100)
- more useful hardstatus line
- start window number at 1
- C-z as escape instead of C-a

.screenrc
.vim/display.vim

index 1f4c2d4ce4b8b878578ef0d1586454667aa7346c..34e08e3e9047e4aa452f00d0e738238fbf26c421 100644 (file)
--- 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
index 0456e6f8f30326ed22b17061eeb904a03a68ee42..12c478d55a62e5063432d2e037662a6c36873029 100644 (file)
@@ -27,6 +27,8 @@ set showmatch
 
 " Show the filename title in xterms
 set title
+set t_ts=\e]0;
+set t_fs=\a
 
 " Make the autocompletion of filenames,etc behave like bash
 set wildmode=longest,list