-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscreenrc
45 lines (39 loc) · 926 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
escape ^Oo
attrcolor b ".I"
termcapinfo xterm* 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
encoding GBK UTF-8
vbell on
autodetach on
startup_message off
# make the shell in every window a login shell
shell -$SHELL
defscrollback 5000
#remove some stupid / dangerous key bindings
bind k
bind ^k
bind .
bind ^\
bind \\
bind ^h
bind h
# bind <F7> to move to previous window
# bind <F8> to move to next window
# bind <F9> to create a new screen
# bind <F10> to kill current session
# bind <F11> to rename an existing window
# bind <F12> to detach screen from this terminal
bindkey -k k7 prev
bindkey -k k8 next
bindkey -k k9 screen
bindkey -k k; kill
bindkey -k F1 title
bindkey -k F2 detach
bind ` select 0
bind 0 select 10
# default windows
screen -t odp 0
screen -t odpp 1
screen -t server 2
screen -t bash 3
select 0
hardstatus alwayslastline '%{gk}%-w%{.gk}%n %t%{-}%+Lw %=%{kG}%m-%d %c'