]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - screenrc.in
screenrc: Use zsh as shell.
[config/dotfiles.git] / screenrc.in
1 # Screen configuration file.
2 #
3 # Features which are only available in (very) recent screen releases or in
4 # current Git are marked with "(GIT)" so they can be removed by the setup
5 # script on machines with older versions.
6
7
8 # Don't display startup message.
9 startup_message off
10
11 # Use visual bell instead of audible bell.
12 vbell on
13
14 # Increase the scrollback buffer.
15 defscrollback 10000
16
17 # Ignore case when searching.
18 ignorecase on
19
20 # I prefer zsh as my shell.
21 shell zsh
22
23
24 # TERMINAL
25
26 # Enable 256 color mode.
27 term screen-256color
28 # Allow bold colors in XTerm (not necessary for Rxvt), not sure why this is
29 # necessary. Otherwise normal and bold colors are switched. Thanks to
30 # http://www.frexx.de/xterm-256-notes/.
31 attrcolor b ".I"
32
33
34 # CAPTION AND HARDSTATUS
35
36 # Use white on light blue background for highlighting and text messages (and
37 # for window borders in split mode).
38 sorendition = Bw
39
40 # Make sure the temporary variable we use is empty. Thanks to
41 # http://gist.github.com/133000 for the idea to use setenv and to TauPan in
42 # #screen on Freenode (2010-03-10 16:11) for reminding me of it and searching
43 # it again.
44 unsetenv s
45
46 # Always display the caption.
47 setenv s "$s%{= Bw}" # - white on light blue background, also reset all
48                      #   attributes (necessary so everything is displayed
49                      #   correctly)
50 setenv s "$s%?%P"    # - is copy mode enabled? (GIT)
51 setenv s "$s%{= wB}" #   - if so change colors to light blue on white (GIT)
52 setenv s "$s%?"      # - end if (GIT)
53 setenv s "$s%3n"     # - window number
54 setenv s "$s "       # - space
55 setenv s "$s%t"      # - window name
56 caption always "$s"
57 unsetenv s
58 # Always display the status line with open windows and the hostname.
59 setenv s "$s%w" # - number and names of windows
60 setenv s "$s%=" # - right align the following text
61 setenv s "$s%l" # - load average
62 setenv s "$s "  # - space
63 setenv s "$s%H" # - hostname
64 hardstatus alwayslastline "$s"
65 unsetenv s
66
67
68 # BINDINGS
69
70 # Remove some bindings I don't use to prevent using them accidentally. You
71 # probably don't want to copy this.
72 bind K  # kill
73 bind k  # kill
74 bind \\ # quit
75 bind ^Z # suspend
76 bind z  # suspend
77 bind ^S # xoff
78 bind s  # xoff
79 bind ^Q # xon
80 bind q  # xon
81 bind ^G # visual bell
82 bind D  # power detach
83
84 # Run urlview on current screen content. Very useful to follow links. Make
85 # sure hardcopy_append is off before using this command.
86 bind ^B eval "hardcopy $HOME/.screen-urlview" "screen urlview $HOME/.screen-urlview"