-
Notifications
You must be signed in to change notification settings - Fork 2
/
.screenrc
75 lines (51 loc) · 2.46 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
hardstatus alwayslastline "%{= KW}%-w%{= wb}%50>%n %t%{-}%+w%<%-22=%{b}%c [%l]"
caption splitonly '%?%F%{=u R}------>%:%{= kw}......[%?%?%F%{= kY}%:%{= kw}%? %n %t %?%F%{=u R}<------%:%{= kw}]......%?%{-}%>%{=u w}.%100>'
nonblock 5
# bufferfile [exchange-file]
#
# Change the filename used for reading and writing with the paste buffer.
# If the optional argument to the "bufferfile" command is omitted, the default
# setting ("/tmp/screen-exchange") is reactivated. The following example will
# paste the systems password file into the screen window (using the paste buffer,
# where a copy remains):
#
# C-a : bufferfile /etc/passwd
# C-a < C-a ]
# C-a : bufferfile
# http://www.mail-archive.com/[email protected]/msg01126.html
#
# when I press the bound key (F9 here) ':foobar' is typed for me.
# :bindkey -k k9 eval "colon" "stuff foo" "stuff bar"
#bind b eval "writebuf" "exec sh -c 'curl_note_bin < /tmp/screen-exchange'"
#bufferfile ${HOME}/.screen_buffer
#http://github.com/rtyler/dotfiles/blob/master/.screenrc
bind ^B eval "hardcopy_append off" "hardcopy -h $HOME/.screen-scrape" #"screen /home/stu/bin/colonote $HOME/.screen-scrape"
bind y eval "writebuf" "exec ${HOME}/bin/copy-to-clipboard ${HOME}/.screen_buffer"
maptimeout 5
bindkey ^[j prev
bindkey ^[k next
msgwait 3 # show the message for at most 3 seconds (defualt 5)
msgminwait 1 # show all messages for atleast 1 second
autodetach on # detach the screen if we get disconnected
defscrollback 10000 # allow for 10,000 lines of scroll back (default 100)
shell -${SHELL}
shelltitle '$ |bash'
#register s ^a0^aS^a^I^a1
#bind G process s
bind G eval 'split' 'focus down' 'next'
# http://stackoverflow.com/questions/6787734/strange-behavior-of-vim-color-inside-screen-with-256-colors
# http://www.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'
termcapinfo xterm-color 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
termcapinfo xterm-256color|xterm-color|xterm|xterms|xs|rxvt ti@:te@
# erase background with current bg color
defbce "on"
#bind k next
#bind h prev
term screen-256color
#caption always "%{= KW}%-w%{= wb}%50>%n %t%{-}%+w%<%-22=%{b}%c [%l]"
#hardstatus alwayslastline "%{= KW}%-w%{= wk}%50>%n %t%{-}%+w%<"