-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.screenrc
51 lines (51 loc) · 1.8 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
autodetach on
crlf off
#deflogin off
hardcopy_append on
maptimeout 5
multiuser on
msgwait 5
startup_message off
defbce on
attrcolor b ".I"
encoding UTF-8
vbell off
defscrollback 10000
silencewait 15
term screen-256color
attrcolor b ".I"
# Tell screen how to set colors. AB = background, AF=foreground
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
# Erase background with current bg color. Not needed if TERM=screen-256color
defbce "on"
defhstatus "$USER@ H | # | t"
#hardstatus off
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %m-%d %{W}%c %{g}]'
activity "%c activity -> %n%f %t"
bell "%c bell -> %n%f %t^G"
vbell_msg " *beep* "
caption always "%{=b dw}%{=b dw}[ %H ] [ %= %?%{-b dc}%-Lw%?%{+b dk}(%{+b dw}%n:%t%{+b dk})%?(%u)%?%{-b dw}%?%{-b dc}%+Lw%? %{=b dk}%{=b dw}] [ %{-b dw}Load%{+b dk}: %{-b dc}%l %{=b dw}] [ %{-b dw}%{-b dc}%D %M %d %c:%s %Y%{=b dw} ]"
# caption always " %m%d %c | %w"
bind ~ activity "%c activity -> %n%f %t"
bind * activity "%c activity -> %n%f %t"
# bind W screen -t 'w3m' 4 w3m http://google.com/
shell zsh
# Make shift-PgUp and shift-PgDn work like they do in xterm. (Note that this
# requires xterm to be configured to pass those keys through, and not try to
# act on them itself.)
bindkey "^[[5;2~" eval "copy" "stuff ^u"
bindkey -m "^[[5;2~" stuff ^u
bindkey -m "^[[6;2~" stuff ^d
bind "s" hardstatus alwayslastline
bind "h" hardstatus alwaysignore
bind 'K' kill
bind 'k' kill
bind 'l' windowlist
bind 'i' screen -t 'irc' irssi
bind 'm' screen -t 'log' tail -f /var/log/messages.log
#bindkey -k k1 prev
#bindkey -k k2 next
pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
# these last 2 lines are to set the focus on startup (which screen window we look at when screen finishes starting)
focus
select 0