-
Notifications
You must be signed in to change notification settings - Fork 105
/
screenrc
47 lines (30 loc) · 1006 Bytes
/
screenrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# ~/.screenrc
# vim: set foldmethod=marker:
# no startup message
startup_message off
# enable alternate screen switching (e.g. restore contents after exiting vim)
altscreen on
# no audible bell
vbell off
# more scrollbacks
defscrollback 10000
# automatically detach all screens on accidental hangup
autodetach on
# key settings
bind R eval "source ~/.screenrc" # <C-A><S-R> reloads .screenrc
bindkey -k k3 prev # <F3> for previous screen
bindkey -k k4 next # <F4> for next screen
# Terminal and Color settings {{{
# use 256 color terminal
term "screen-256color"
# tell screen how to set colors. AB = background, AF=foreground
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
# allow bold colors - necessary for some reason
attrcolor b ".I"
# use current bg color for erased chars
defbce on
# }}}
# status line
hardstatus on
hardstatus alwayslastline
hardstatus string '%{= k}%{C}%H %{Y}[%{W} %{=kw}%?%-Lw%?%{G}%n*%f %t%?(%u)%?%{G}%{w}%?%+Lw%?%?%= %{Y}][ %{B}%Y-%m-%d %{y}%c %{Y}]'