-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.screenrc
59 lines (43 loc) · 1.56 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
# turn off the annoying "Wuff, Wuff"
vbell off
# don't show me the copyright screen
startup_message off
# rebind 'kill window' from CTRL-a k to CTRL-a K
bind k
bind K kill
# rebind 'lock window' from 'x' to 'X'
bind x
bind X lockscreen
backtick 1 0 5 sh -c "if [ -d /google/src -a ! -d /google/src/cloud ]; then echo '[!]'; else echo ''; fi"
# Scroll back to 30000 lines.
defscrollback 30000
# Autodetach session on hangup instead of terminating screen completely
autodetach on
# Activity flash bar
activity "activity in %n (%t) [%w:%s]~"
# Run everything in UTF-8.
defutf8 on
# From: http://superuser.com/a/74844
# Set ` as the default escape, but use F12 to toggle that to Ctrl-O
## command characters
escape \140\140 # default is `
## sets caption and escape toggle
bindkey -d -k F2 process a # bound to F12
## initial caption
caption always '%{Yk}[%l] |%{w}%=%-w%{Rk}%1`%{-}%{Wr}[%n %t]%{-} %+w%=>>>%{Yk} | [%m/%d %c]'
## registers to toggle bindkeys
register a "\140:eval 'bindkey -d -k F2 process b' 'process c' 'escape \\017\\017'^M"
register b "\017:eval 'bindkey -d -k F2 process a' 'process d' 'escape \\140\\140'^M"
## registers to change captions
register c "\140:caption string '%{Yk}[%l] |%{w}%=%-w%{Rk}%1`%{-}%{Wr}[%n %t]%{-} %+w%=ALT%{Yk} | [%m/%d %c]'^M"
register d "\017:caption string '%{Yk}[%l] |%{w}%=%-w%{Rk}%1`%{-}%{Wr}[%n %t]%{-} %+w%=>>>%{Yk} | [%m/%d %c]'^M"
# Window numbering starts at 1, not 0.
bind c screen 1
bind ^c screen 1
bind 0 select 10
screen -t :g 1
screen -t b/r 2
screen -t gn 3
screen -t gyp 4
screen -t src 5
altscreen on