]> Tony Duckles's Git Repositories (git.nynim.org) - dotfiles.git/blob - .screenrc
vim: Add solarized theme support
[dotfiles.git] / .screenrc
1 # -------------------------------------------------------------------
2 # Settings
3 # -------------------------------------------------------------------
4 crlf off # No Microsoft linebreaks
5 startup_message off # bypass GPL notice (we're aware)
6 vbell off # Use audio bell
7 defscrollback 15000 # big scrollback
8 shell bash # don't start login shells
9 shelltitle "sh" # no title by default - set in PS1
10 #defmonitor on # turn on monitoring
11 #activity "%c activity <%n>" # let you know when stuff happens!
12 nethack off # makes error messages cryptic
13 pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
14 autodetach on
15 term xterm
16
17 # Use UTF-8
18 defutf8 on
19 defencoding UTF-8
20 setenv LANG 'en_US.UTF-8'
21
22 # status line to display a bar at the bottom listing the window
23 # names and highlighting the current windowname in blue.
24 # (http://www.ibm.com/developerworks/aix/library/au-gnu_screen/index.html)
25 hardstatus alwayslastline "%{.bw}%-w%{.rW}%n %t%{-}%+w %=%{..G} %H %{..Y} "
26
27 # enable bold
28 attrcolor b ".I"
29
30 # allow 256 colors
31 termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
32
33 # disable altscreen, so PuTTy + screen play nicely together
34 termcapinfo xterm* 'ti@:te@'
35 altscreen off
36
37 # xterm understands both im/ic and doesn't have a status line.
38 # Note: Do not specify im and ic in the real termcap/info file as
39 # some programs (e.g. vi) will not work anymore.
40 termcap xterm 'hs@:cs=\E[%i%d;%dr:im=\E[4h:ei=\E[4l'
41 terminfo xterm 'hs@:cs=\E[%i%p1%d;%p2%dr:im=\E[4h:ei=\E[4l'
42 termcap xterm-color 'hs@:cs=\E[%i%d;%dr:im=\E[4h:ei=\E[4l'
43 terminfo xterm-color 'hs@:cs=\E[%i%p1%d;%p2%dr:im=\E[4h:ei=\E[4l'
44
45 # our xterm has colors! (rxvt, too)
46 termcap xterm* 'AF=\E[3%dm:AB=\E[4%dm'
47 terminfo xterm* 'AF=\E[3%p1%dm:AB=\E[4%p1%dm'
48
49 # this makes backspace sane on debian systems
50 termcapinfo xterm 'bc@:bs@'
51 termcapinfo xterm-color 'bc@:bs@'
52
53 # 80/132 column switching must be enabled for ^AW to work
54 # change init sequence to not switch width
55 termcapinfo xterm 'Z0=\E[?3h:Z1=\E[?3l:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
56 termcapinfo xterm-color 'Z0=\E[?3h:Z1=\E[?3l:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
57
58 # tell screen that xterm can switch to dark background and has function
59 # keys.
60 termcapinfo xterm 'VR=\E[?5h:VN=\E[?5l'
61 termcapinfo xterm 'k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~'
62 termcapinfo xterm 'kh=\EOH:kI=\E[2~:kD=\E[3~:kH=\EOF:kP=\E[5~:kN=\E[6~'
63 termcapinfo xterm-color 'VR=\E[?5h:VN=\E[?5l'
64 termcapinfo xterm-color 'k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~'
65 termcapinfo xterm-color 'kh=\EOH:kI=\E[2~:kD=\E[3~:kH=\EOF:kP=\E[5~:kN=\E[6~'
66
67 # make the output buffer large for (fast) xterms.
68 termcapinfo xterm* 'OL=10000'
69 termcapinfo xterm* 'vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l'
70
71 # emulate part of the 'K' charset
72 termcapinfo xterm* 'XC=K%,%\E(B,[\304,\\\\\326,]\334,{\344,|\366,}\374,~\337'
73
74 # remove some stupid / dangerous key bindings
75 bind k
76 bind ^K
77 bind \\
78 bind ^\
79
80 # add some useful key bindings
81 bind ' ' windowlist -b
82 bind ')' select 10
83 bind '!' select 11
84 bind '@' select 12
85 bind '#' select 13
86 bind '$' select 14
87 bind '%' select 15
88 bind '^' select 16
89 bind '&' select 17
90 bind '*' select 18
91 bind '(' select 19
92