-
Notifications
You must be signed in to change notification settings - Fork 0
/
.screenrc
59 lines (44 loc) · 2.92 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
# assign name to a session : Esc :sessionname <name> -OR- screen -S <name>
# assign name to a layout : Esc :layout title <name>
# assign name to a window : Esc :title <name>
# change window number : Esc :number <new_number>
startup_message off # turn off the startup message and copyright notice
autodetach on # automatically detach on hangup
vbell off # turn off visual bell, and use audio bell instead
termcapinfo xterm* ti@:te@ # enable mouse scroll in copy mode
term xterm-256color # set $TERM to use 256 colors
#mousetrack on # use mouse to select regions
altscreen on # clear vim window after closing vim
defscrollback 200000 # set scrollback buffer size to 200000 lines
layout save default # remember the current arragement of regions/layouts
defdynamictitle off # do not set prompt as the window title
escape ^\\ # change window command key to 'Ctrl + \'
# display status line on the top
backtick 1 0 1 env TZ="America/New_York" date +"%H:%M %Z"
backtick 2 0 1 cat $HOME/.rate
hardstatus alwayslastline
hardstatus string "%{u kK}[%S]%2` %= %{kb}<j<%{-} %-w%{w}%n %t%{-}%+w %{kb}>l>%{-} %= %{kR}>X<%{-} %D %M %d %1`%{= dw} %0c:%s"
# display caption for each region at the bottom
caption splitonly
caption string "%?%F%{kK}%:%{u kK}%? %= %?%F %{g}<h<%{-} %{WK}%? %n %t %?%F%{kK} %{g}>k>%{-} %? %= %?%F%{R}>K<%{-}%: %? "
# render vertical split line in black color and set command line fg to white
rendition so "wK"
bindkey ^o eval "layout new" focus screen # Ctl + O : new window
bind x layout remove # Esc + X : remove layout
bind l eval "layout show" # Esc + L : new window
bindkey ^l eval "layout next" # Ctl + L : next layout
bindkey ^j eval "layout prev" # Ctl + J : next layout
bind \ eval "split -v" focus screen # Esc + \ : vertical split
bind - eval "split" focus screen # Esc + - : horizontal split
bind k remove # Esc + K : remove region/split
bindkey ^k focus next # Ctl + K : next region/split
bindkey ^h focus prev # Ctl + H : prev region/split
bind = resize -b = # Esc + = : reset all regions
bind ] resize +5 # Esc + ] : increase region size
bind [ resize -5 # Esc + [ : decrease region size
bind o screen # Esc + O : new window
bindkey ^n next # Ctl + N : next window
bindkey ^b prev # Ctl + B : previous window
bindkey ^y copy # Ctl + Y : enter copy/scroll mode
bind p paste . # Esc + p : paste selected text
bind d detach # Esc + d : detach screen session