conf

view .screenrc @ 375:26aed4e65671

cleanup hgrc a bit
author Alexander Solovyov <alexander@solovyov.net>
date Mon Jan 23 18:20:04 2012 +0200
parents 586f7b9f12a1
children
line source
1 # (c) piranha 2003-2006
2 # thx to dym and Michael Prokop
4 # Text Tools rule! :-)
5 unsetenv DISPLAY
6 # setenv DISPLAY 'localhost:0.0'
8 # ===============================================================
9 # STARTUP of programs in an extra window:
10 # ===============================================================
11 # Uncomment one/some following lines to automatically let
12 # SCREEN start some programs in the given window numbers:
13 # screen -t mail 0 mutt
14 # screen -t zsh 0 zsh
15 # screen -t vim 1 vim
16 # screen -t google 2 links http://www.google.com
17 # screen -t slrn 3 slrn
18 # screen -t www 4 $BROWSER http://www.michael-prokop.at/
20 # ===============================================================
21 # VARIABLES - Boolean values (on/off)
22 # ===============================================================
23 # detach on hangup
24 autodetach on # default: on
25 crlf off # default: off
26 deflogin off # default: on
27 # defsilence off # default: off
28 # hardcopy_append on # default: off
29 # nethack on # default: off
30 # don't display the copyright page
31 startup_message off # default: on
32 # no annoying bell, please
33 vbell off
35 defnonblock 1
37 # ===============================================================
38 # xterm tweaks
39 # ===============================================================
40 # xterm understands both im/ic and doesn't have a status line.
41 # Note: Do not specify im and ic in the real termcap/info file as
42 # some programs (e.g. vi) will not work anymore.
43 # termcap xterm hs@:cs=\E[%i%d;%dr:im=\E[4h:ei=\E[4l
44 # terminfo xterm hs@:cs=\E[%i%p1%d;%p2%dr:im=\E[4h:ei=\E[4l
46 # 80/132 column switching must be enabled for ^AW to work
47 # change init sequence to not switch width
48 # termcapinfo xterm Z0=\E[?3h:Z1=\E[?3l:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l
50 # Make the output buffer large for (fast) xterms.
51 # termcapinfo xterm* OL=10000
52 # termcapinfo xterm* OL=100
54 # tell screen that xterm can switch to dark background and has function
55 # keys.
56 # termcapinfo xterm 'VR=\E[?5h:VN=\E[?5l'
57 # termcapinfo xterm 'k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~'
58 # termcapinfo xterm 'kh=\EOH:kI=\E[2~:kD=\E[3~:kH=\EOF:kP=\E[5~:kN=\E[6~'
60 # special xterm hardstatus: use the window title.
61 # termcapinfo xterm 'hs:ts=\E]4;:fs=\007:ds=\E]2;screen\007'
63 #terminfo xterm 'vb=\E[?5h$<200/>\E[?5l'
64 # termcapinfo xterm 'vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l'
66 # emulate part of the 'K' charset
67 # termcapinfo xterm 'XC=K%,%\E(B,[\304,\\\\\326,]\334,{\344,|\366,}\374,~\337'
69 # xterm-52 tweaks:
70 # - uses background color for delete operations
71 # termcapinfo xterm* be
73 # termcap xterm 'AF=\E[3%dm:AB=\E[4%dm'
74 # terminfo xterm 'AF=\E[3%p1%dm:AB=\E[4%p1%dm'
75 # Matthias Kopfermann <matthias_kopfermann@gmx.de> [020222]
76 # make the cursor show up in red:
77 # termcapinfo linux "ve=\E[?25h\E[?17;0;64c" # red
79 # ===============================================================
80 # VARIABLES - Number values
81 # ===============================================================
82 defscrollback 1000 # default: 100
83 msgminwait 3 # default: 1
84 silencewait 15 # default: 30
86 # ===============================================================
87 # VARIABLES - Paths and Files (esp. programs)
88 # ===============================================================
89 # bufferfile: The file to use for commands
90 # "readbuf" ('<') and "writebuf" ('>'):
91 bufferfile $HOME/.screen_exchange
93 # hardcopydir: The directory which contains all hardcopies.
94 hardcopydir $HOME/.screen
96 # shell: Default process started in screen's windows.
97 # Makes it possible to use a different shell inside screen
98 # than is set as the default login shell. Halleluja! :-)
99 # shell zsh
100 # shell bash
101 # shell ksh
103 # ===============================================================
104 # VARIABLES - Strings
105 # ===============================================================
107 # some notes on COLOR before explaining its use in
108 # the commands caption, hardstatus, and sorendition.
110 # COLOR: colors codes are combinations of
111 # [attribute modifier] [color description]
112 # see the manual, section "STRING ESCAPES".
114 # Color table:
115 # 0 Black . leave color unchanged
116 # 1 Red b blue
117 # 2 Green c cyan
118 # 3 Brown / yellow d default color
119 # 4 Blue g green b bold
120 # 5 Purple k blacK B blinking
121 # 6 Cyan m magenta d dim
122 # 7 White r red r reverse
123 # 8 unused/illegal w white s standout
124 # 9 transparent y yellow u underline
126 hardstatus alwayslastline "%{ck}%H %{gk}| %{+u rk}Load: %l%{-u gk} | %{wk}%c %{yk}%d.%m.%Y %{gk}| %{wk}%?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{wk}%?%+Lw%?"
128 # ===============================================================
129 # Messages
130 # ===============================================================
132 activity "activity in %n (%t) [%C]~"
134 # ===============================================================
135 # Key bindings
136 # ===============================================================
137 # 040126 To be able to select windows with n > 9 ->
138 # press "C-a - #" instead of just "C-a #"
139 bind - command -c select_1n
140 bind -c select_1n 0 select 10
141 bind -c select_1n 1 select 11
142 bind -c select_1n 2 select 12
143 bind -c select_1n 3 select 13
144 bind -c select_1n 4 select 14
145 bind -c select_1n 5 select 15
146 bind -c select_1n 6 select 16
147 bind -c select_1n 7 select 17
148 bind -c select_1n 8 select 18
149 bind -c select_1n 9 select 19
150 bind -c select_1n - command -c select_2n
151 bind -c select_2n 0 select 20
152 bind -c select_2n 1 select 21
153 bind -c select_2n 2 select 22
154 bind -c select_2n 3 select 23
155 bind -c select_2n 4 select 24
156 bind -c select_2n 5 select 25
157 bind -c select_2n 6 select 26
158 bind -c select_2n 7 select 27
159 bind -c select_2n 8 select 28
160 bind -c select_2n 9 select 29
161 bind -c select_2n - select -
163 # ==============================================================
164 # BIND and the Services:
165 # ==============================================================
166 # remove some stupid / dangerous key bindings
167 # bind k
168 # bind ^k
169 # bind .
170 # bind ^\
171 # bind \\
172 # bind s
173 # bind h
174 bind h hardcopy
175 # make them better
176 bind 'K' kill
177 bind 'I' login on
178 bind 'O' login off
180 # EOF vim: ts=8 et nowrap
Repositories maintained by Alexander Solovyov