-
Notifications
You must be signed in to change notification settings - Fork 1
/
.screenrc
74 lines (61 loc) · 2.61 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
# OPTIONS {{{1
altscreen on # let programs use the alternate buffer
autodetach on # detach on HANGUP
defbce on # erase background with current bg color
defescape # use ^_ for commands and ^_^_ to get ^_ (^_ == ^7)
defhstatus ""
deflogin off # don't do multiple logins
defscrollback 2048 # scrollback buffer
defutf8 on # use UTF-8 because we can
escape # use ^_ for commands and ^_^_ to get ^_ (^_ == ^7)
# http://osdir.com/ml/gnu.screen.user/2006-06/msg00001.html
hardstatus off
hardstatus message
hardstatus string "%?%h%:%t%?"
nethack off # don't show stupid messages
shell zsh
# shelltitle '% |zsh:'
startup_message off # no startup message
term "screen-256color"
vbell off # don't use visual bell
vbell_msg " VBELL "
# CAPTION {{{1
caption always
caption string "%{= kK}[ %L=%-Lw%50L>%{w}%n%f*%t%{K}%+Lw%-019<%L= ][%D %d %M %0c]%>%<"
# caption string "%{= kK}[%L=%=%-Lw%>%40=%{w}%n*%f%t%{K}%+Lw%L<%-019=][%D %d %M %0c]"
# viking's
# caption string "%{= kg}[ %{G}%H %{g}] %L=%=%{w}%-Lw%L>%45=%{r}(%{W}%n*%f%t%{r})%{w}%+Lw%-016= %{g}[ %{B}%m/%d %{W}%0c %{g}]"
# other caption attempts
# caption string "%{= Km}%-Lw%{= KW}%50>%n%f* %t%{= Km}%+Lw%< %{= KG}%-=%D %d %M %Y %c%{-}"
# caption string "%{= kw}%+30= %L>%-w%{r}(%{W}%n*%f%t%{r})%{w} %+w%L>%-20= %{g}[ %{B}%m/%d %{W}%c %{g}]"
# http://osdir.com/ml/gnu.screen/2002-09/msg00071.html
# caption string "%{= kK}-(%H)--[%L=%-Lw%50L>%n%f*%t%+Lw%-026<]%L=-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------(%D %d %M %Y %0c)-%>%<"
# KEY BINDINGS {{{1
bind \\
bind ^\
bind K
bind I
bind O
bind }
# screen navigation
bind h prev
bind l next
bind ^^ other
# region navigation similar to Vim
bind w focus
bind j focus down
bind k focus up
bind t focus top
bind b focus bottom
bind o only
bindkey -k k4 copy # F4 - start copy/scrollback mode
# TERMCAP/TERMINFO {{{1
# The vt100 description does not mention "dl". *sigh*
termcapinfo vt100 "dl=5\E[M"
# set these terminals up to be 'optimal' instead of vt100
termcapinfo xterm*|linux*|rxvt*|Eterm* OP
# tell screen that it can change the title of xterm-alikes
termcapinfo screen*|xterm*|konsole*|gnome*|putty* "hs:ts=\E]2;:fs=\007:ds=\E]2;\007"
# tell screen how to set colors. AB = background, AF = foreground
# termcapinfo screen*|xterm*|konsole*|gnome*|putty* "Co#256:AB=\E[48;5;%p1%dm:AF=\E[38;5;%p1%dm"
# vim: fdm=marker