-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.screenrc
91 lines (67 loc) · 2.37 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# http://wiki.linuxquestions.org/wiki/Screen
# http://xtermin.us/code/screenconfig/
#-----------------------------------------------------------------------------
# appearance
#-----------------------------------------------------------------------------
# skip the copyright message
startup_message off
# tab & status bar
caption always "%{= dC}%H %=%-w%{= Cw}%n %t%{-}%+w %-= %c"
# do not name tabs by default
shelltitle ""
# Support alternate screens so that, for example, when you quit out of
# vi, the display is redrawn as it was before vi redrew the full screen.
altscreen on
# don't flash the screen
vbell off
defflow off
# enable Unicode support
defutf8 on
# support 256 color terminals
# http://push.cx/2008/256-color-xterms-in-ubuntu
# 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
# set TERM
term screen-256color-bce
#-----------------------------------------------------------------------------
# interaction
#-----------------------------------------------------------------------------
# prefix for all screen shortcuts
escape ^bb
# switch between tabs with Alt-Left/Right
bindkey "^[[1;3D" prev
bindkey "^[[1;3C" next
# access scrollback buffer with Alt-Up/Down
bindkey "^[[1;3A" copy
bindkey "^[[1;3B" paste .
# only allow Shift-K to close a tab
bind k
bind ^k
bind K kill
# enable mouse wheel and terminal scrollbar
termcapinfo rxvt ti@:te@
termcapinfo rxvt 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'
#-----------------------------------------------------------------------------
# tabs
#-----------------------------------------------------------------------------
# start tabs in home directory
chdir
# length of scrollback buffer
defscrollback 9999
#-----------------------------------------------------------------------------
# connection
#-----------------------------------------------------------------------------
# detach on hangup - if my dial-up
# session fails, screen will simply
# detach and let me re-attach later.
autodetach on
# continue receiving output from tabs even
# if the terminal we are displaying on is
# not accepting new content (because the
# user paused it with SrollLock/Control-S)
nonblock on