-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.screenrc
54 lines (39 loc) · 1.28 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
startup_message off
escape ^tt
shell -$SHELL
# http://apple.stackexchange.com/questions/39608/running-gnu-screen-with-256-colors-on-os-x-lion
term "screen-256color"
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
# http://d.hatena.ne.jp/edvakf/20110311/1299793959
altscreen on
defscrollback 8195
zombie "q^M"
autodetach on
hardstatus alwayslastline "%w%="
bufferfile '/tmp/screen-exchange'
markkeys h=^b:l=^f:$=^e:^D=^V:^u=^[v
# stuffは2ストロークキー
# http://yskwkzhr.blogspot.jp/2011/12/master-copy-and-paste-of-gnu-screen.html
bindkey -m ^[v stuff "^u" # [(M v)]
bindkey -m ^v stuff "^d" # [(C v)]
bindkey -m ^[< stuff "g" # [(M <)]
bindkey -m ^[> stuff "G" # [(M >)]
bindkey -m ^[f stuff "w" # [(M f)]
bindkey -m ^[b stuff "b" # [(M b)]
bindkey -m "^ " stuff " " # [(C \ )]
bindkey -m ^g stuff "^c" # [(C g)]
bindkey -m ^[w eval 'stuff " "' 'writebuf' 'exec bash -c "cat /tmp/screen-exchange > /dev/tcp/localhost/49152"' # [(M w)]
bind 0 remove
bind 2 split -h
bind 3 split -v
bind 'o' focus next
bind 'O' focus prev
bind ^b eval 'select 0' 'windowlist -g'
bind 5 command -c layout-map
bind -c layout-map 2 layout new
bind -c layout-map 'o' layout next
bind -c layout-map 'O' layout prev
bind -c layout-map '0' layout remove
layout new root
screen -t root //group
screen