-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.screenrc
97 lines (77 loc) · 2.43 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#----------------------------------------------------------------------------------------
# basic setting
#----------------------------------------------------------------------------------------
# use <C-j> as the command character , instead of the default <C-a>.This is easier to prees
# and do not conflict with readline, in which <c-a> means "Go to the beginning of the line"
defescape ^Jj
escape ^Jj
#no boring license info
startup_message off
#no vbell, preventing display shilvering
vbell off
#remeber more history buffer
defscrollback 2048
# auto detach when SIGHUP is received
autodetach on
deflogin on
nonblock on
#defutf8 on
# message will be shown for 10 secods if not disruptted
msgwait 10
# make sure the screen is restore after exiting from vim
altscreen on
#----------------------------------------------------------------------------------------
# visual clue
#----------------------------------------------------------------------------------------
#caption always "%?%{ Wk}%-Lw%?%{Rk}%n*%f %t%?(%u)%?%?%{Wk}%+Lw%? %{Rk}%=%c %{rk}%d/%M/%Y"
hardstatus on
hardstatus alwayslastline
#hardstatus string "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G} %H %{..Y} %m/%d %C%a "
#----------------------------------------------------------------------------------------
# key bindings
#----------------------------------------------------------------------------------------
# remove some stupid/dangerous key bindings
bind k
bind ^k
bind \\
bind ^\
bind h
bind ^h
bind .
# some useful keys for resizing
bind = resize =
bind + resize +1
bind - resize -1
bind _ resize max
# bind some keys for moving between split regions
bind j focus down
bind k focus up
bind t focus top
bind b focus bottom
# make window switching more easy
bind h prev
bind ^h prev
bind l next
bind ^l next
# make life easier, f1-f10 selects screens 0-9
#bindkey -k k1 select 1
#bindkey -k k2 select 2
#bindkey -k k3 select 3
#bindkey -k k4 select 4
#bindkey -k k5 select 5
#bindkey -k k6 select 6
#bindkey -k k7 select 7
#bindkey -k k8 select 8
#bindkey -k k9 select 9
#bindkey -k k0 select 0
#Enable Shift-Up/Down scrolling
termcap Eterm 'AF=\E[3%dm:AB=\E[4%dm'
terminfo Eterm 'AF=\E[3%p1%dm:AB=\E[4%p1%dm'
termcapinfo Eterm ti@:te@
termcap xterm 'AF=\E[3%dm:AB=\E[4%dm'
terminfo xterm 'AF=\E[3%p1%dm:AB=\E[4%p1%dm'
termcapinfo xterm ti@:te@
#termcapinfo rxvt-unicode ti@:te@ #enable SHIFT-PGUP / SHIFT-PGDOWN scroll
#terminfo rxvt-unicode ti@:te@:
#term screen-256color
shell /bin/bash