-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.screenrc
60 lines (54 loc) · 2.52 KB
/
.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Remove some stupid / dangerous key bindings, and override some bad defaults
#defflow on # will force screen to process ^S/^Q
escape ^Aa
vbell off
bell_msg "^G" # Re-sounds the bell
defscrollback 10000 # define a bigger scrollback, default is 100 lines
msgminwait 0 # Eliminate delay when entering copy mode
bind ^k
bind L
bind ^\
bind \\ quit
bind x kill
bind } history
bind . number +1
bind , number -1
bind "#" monitor # Same as on tmux. "~" is for silence, by default
bind r eval "clear" "scrollback 0" "scrollback 10000" "stuff ^L" # Clear both scrollback and screen then refresh
termcapinfo vt100 dl=5\E[M # The vt100 description does not mention "dl". *sigh*
hardstatus off
termcapinfo xterm*|linux*|rxvt*|kterm*|Eterm* hs:ts=\E]0;:fs=\007:ds=\E]0;\007 # Set the hardstatus prop on gui terms to set the titlebar/icon title
termcapinfo xterm*|linux*|rxvt*|kterm*|Eterm* OP # set these terminals up to be 'optimal' instead of vt100
termcapinfo xterm*|linux*|rxvt*|kterm*|Eterm* ti@:te@ # scrollback fix
defnonblock 5 # Enable non-blocking mode to better cope with flaky ssh connections.
msgwait 1 # Messages displayed for this long
startup_message off # Turn off startup screen
defutf8 on # It's the XXI century, everyone should use UTF-8
attrcolor b ".I" # allow bold colors - necessary for some reason
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm' # tell screen how to set colors. AB = background, AF=foreground
defbce on # use current bg color for erased chars
altscreen on # use the alternate screen
hardstatus ignore # switch off hardstatus
defmousetrack on # handle mouse events
mousetrack on # handle mouse events
#defdynamictitle off # Switch off title change from ANSI codes. Needs screen 4.5+
# Next window on ctrl-space
bindkey ^@ next
# Prev window on ctrl-/ (forward slash)
bindkey ^_ prev
# Set up our "status line"
# Minimal bar
#caption always "%-w(%n%f*%t)%+w%=%H"
# Simple very clean bar
#caption always "%-w%{+b wb} %n %t %{-}%+w %=%{Wb} %H %{-}"
# Same as above but with flags
caption always "%-Lw%{+b wb} %n%f:%t %{-}%+Lw %=%{+b Wb} %H %{-}"
# With backticks in different colors
#caption always "%{kW}%?%-Lw%?%{Wb}%n*%f %t%?(%u)%?%{kW}%?%+Lw%? %= %{= Wk} %{= bW}%100`%{-} %{= yw}%101`%{-} %{= mw}%102`%{-} %H "
#backtick 100 30 30 uptime
#backtick 101 86400 86400 whoami
#backtick 102 10 10 who
#hardstatus string '%99`%{= Wk} %100`%112`%= %102`%101`%114`%115`%108`%113`%119`%117`%118`%116`%106`%104`%103`%105`%107`%Y-%m-%d %0c:%s'
#hardstatus alwayslastline
#bindkey -k k9 windowlist -b # Map F9 to screen selection
# Local commands: