-
Notifications
You must be signed in to change notification settings - Fork 0
/
screenrc
58 lines (44 loc) · 1.3 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
term xterm
termcapinfo xterm ti@:te@
termcapinfo xterm* OL=10000
startup_message off
vbell off
#shelltitle '> |tcsh'
shelltitle "$ |bash"
# replace ctrl-A by ctrl-O
#escape ^Oo
# set a big scrolling buffer
defscrollback 10000
# restore window contents after using (e.g.) vi
altscreen on
# Set the caption on the bottom line
#caption always "%{= kw}%-w%{= BW}%n %t%{-}%+w %-= @%H - %LD %d %LM - %c"
#caption always "%{=u kC} %= %-w%L>%{=b G}[:%n %t:]%{-}%52<%+w %L="
# buttom status barcaption always "%{=u .G} %-w%<%{=ub .y}%n %t%{=u .G}%+w"
caption always "%{=u .c} %-w%<%{=ub .y}%n %t%{=u .c}%+w"
#hardstatus alwayslastline "%{= .K} %<%=%{= .R}@%H %=%{= .y} %Y/%m/%d%{= .m} %C %A"
hardstatus alwayslastline "%{= .K} [%t]%<%=%{= .R}@%H %=%{= .y} %Y/%m/%d%{= .m} %c"
# C + left : prev
# C + right : next
bindkey "^[[1;5C" next
#bindkey "^[O5C" next
#bindkey "^[[C" next
bindkey "^[[1;5D" prev
#bindkey "^[O5D" prev
#bindkey "^[[D" prev
# Split resize
bindkey "^[=" resize =
bindkey "^[;" resize +3
bindkey "^['" resize -3
#bind _ resize max
# Using tab to move around regions gets annoying. These help.
bindkey "^[[A" focus up
bindkey "^[[B" focus down
# Split
bindkey "^[s" split
bindkey "^[q" only
bindkey "^[r" eval split "resize 50" redisplay
# Map
bindkey "^[c" screen
bindkey "^[k" kill
bindkey "^[d" detach