-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.screenrc
73 lines (56 loc) · 2.83 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
# Best Goddamn screenrc in the whole world.
# Author: Seth House <[email protected]>
# Marco Ziesing <[email protected]>
# Modified: 2012-07-10
shell -${SHELL} # dash (-) is for login shells
# Messages ####################################################################
nethack on # be careful! new screen tonight.
sorendition "kg" # makes screen messages stand out, black on green
msgwait 2 # default message display is too long
startup_message off # boooring!
version # echo version on startup, 'cause it's nice to know
# Misc ########################################################################
autodetach on # A.K.A. the "save your bacon" option
altscreen on # full-screen programs (less, Vim) should be cleared once quit
vbell off # visual bells are hard to do right. screen's isn't good
defutf8 on # allow utf characters
defnonblock 5
defflow off # try to disable flow control (buggy)
bind s # free ctrl-s
# Also put this in your shell startup file:
# tty > /dev/null && stty -ixon -ixoff
# escape ^Ss # Use ctrl-s as the escape key or invoke with screen -e'^Ss'
# FIXME: http://web.mit.edu/gnu/doc/html/screen_14.html
bindkey ^[[1;3D prev
bindkey ^[[1;3C next
# Scroll-back mode ############################################################
ignorecase on # case insensitive search in scroll-back mode
defscrollback 9999 # default scroll-back buffer is tiny. (no. of lines.)
bufferfile $HOME/.screen-exchange # keep the buffer exchange file out of /tmp
# FIXME: http://stackoverflow.com/questions/994563/integrate-readlines-kill-ring-and-the-x11-clipboard
# disable use of the "alternate" terminal
# thus allowing scrollbars to function as normal in
# many terminal emulators! <3 it
termcapinfo xterm* ti@:te@
# Enable 256 Colors (http://frexx.de/xterm-256-notes/) ######################
#
# terminfo and termcap for nice 256 color terminal
# allow bold colors - necessary for some reason
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
defbce "on"
# Create windows on startup ###################################################
screen -t main
screen -t work
screen -t mail
screen -t chat
screen -t system
select 0
# Hardstatus ##################################################################
# Adds a nice "tabbed" look, kinda long but gracefully pushes the status stuff off-screen if need be
hardstatus alwayslastline "%{wk}%?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{wk}%?%+Lw %= %{mk}@%H %{ck}%Y-%m-%d %{yk}%D %{gk}%0c %{bk}%l"
# TODO: Detail every part of the hardstatus line below
# %{wk} - Default white on black
# EOF