-
Notifications
You must be signed in to change notification settings - Fork 0
/
.screenrc
50 lines (45 loc) · 1.35 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
#==================================================================
# TO REMEMBER:
#==================================================================
# <prefix> + s // split windows
# <prefix> + [ // copy mode (enables vi-bindings for scrolling, find etc)
# <prefix> + : // run command for screen
#==================================================================
startup_message off
defmonitor on
vbell off
termcapinfo xterm|xterms|xs|rxvt ti@:te@
escape `e
altscreen on
autodetach on
caption always "%{= 45}%{+b w}Screen: %n | %h %=%t %c"
#hardstatus alwayslastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<"
hardstatus alwayslastline
hardstatus string '%{= kG}%{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}'
pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
deflogin off
defutf8 on
title screen
#remove some stupid / dangerous key bindings
bind k
bind ^k
bind .
bind ^\
bind \\
bind ^h
bind h
#make them better
bind 'K' kill
bind 'I' login on
bind 'O' login off
bind '}' history
defscrollback 5000 # default: 100
bind = resize =
bind + resize +1
bind - resize -1
bind _ resize max
bind ' ' windowlist -b
# from http://www.softpanorama.org/Utilities/Screen/screenrc_examples.shtml
# Define the time that all windows monitored for silence should
# wait before displaying a message. Default 30 seconds.
silencewait 15 # default: 30