-
Notifications
You must be signed in to change notification settings - Fork 0
/
screenrc
74 lines (55 loc) · 1.98 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Status line
hardstatus alwayslastline
hardstatus string '%{gk}[ %{G}%H %{g}][%= %{wk}%?%-Lw%?%{=b kR} (%{W}%n*%f %t%?(%u)%?%{=b kR})%{= kw}%?%+Lw%?%?%= %{g}][%{Y}%l%{g}] %{=b C}[ %m/%d %c ]%{W}'
# detach on hangup
autodetach on # default: on
crlf off # default: off
deflogin off # default: on
# defsilence off # default: off
# hardcopy_append on # default: off
hardcopy_append off # default: off
nethack on # default: off
# don't display the copyright page
startup_message off # default: on
# no annoying audible bell, please
vbell on
defscrollback 1000 # default: 100
# msgminwait 3 # default: 1
silencewait 15 # default: 30
hardcopydir $HOME/.hardcopy
# "sorendition": set the colors for
# the "messages" and "text marking"
# (ie text you mark in copy mode):
sorendition 10 99 # default!
# use %n to display the window number and %t for its title:
activity "activity in %n (%t) [%w:%s]~"
# pass on the "beep" (CTRL-G) by adding a '~':
bell "bell in %n (%t) [%w:%s]~"
# pow_detach_msg: Message shown when session
# gets power detached.
pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
# vbell_msg: Message shown when the
# "virtual bell" rings.
vbell_msg " *beep* "
# remove some stupid / dangerous key bindings
bind k
bind ^k
bind .
bind ^\
bind \\
bind ^h
bind h hardcopy
# make them better
bind 'K' kill
bind 'I' login on
bind 'O' login off
bind '}' history
bind ^s
# Welcome the user:
echo "welcome BoFH!"
altscreen on
sessionname capgemini
screen -t "root" 0 bash
screen -t "messages" tail -f /var/log/messages
select 0
# vim:ft=screen