-
Notifications
You must be signed in to change notification settings - Fork 3
/
.screenrc
30 lines (22 loc) · 902 Bytes
/
.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
# .screenrc
# based on fhsm's .screenrc on CrunchBang Linux forums
# http://crunchbanglinux.org/forums/topic/2532/screenrc-files/
shell -$SHELL
# Basic
defscrollback 10000
autodetach on
escape ^g^g
# status
screen
screen $SHELL -c 'screen -X hardstatus alwayslastline "%{= kw}%{g}[ %{R}$STY %{g}] %{Y} %{g}[%=%{ =kw}%{w}%-w%{Y}%{g}[%{W}%{y}%n-%t%{Y}%{g}]%{w}%+w%=%{g}][ %{w}%m-%d %{Y}%c %{g}]"'
# add caption
caption splitonly "%{= kw}%?%-Lw%?%{kw}%n*%t%f %?(%u)%?%{= kw}%?%+Lw%?"
# xterm scrollback
termcapinfo xterm ti@:te@
startup_message off
term screen-256color
# Tell Screen to write its copy buffer to a temporary file (defaults to
# /tmp/screen-exchange), and then send that file to `pbcopy`.
# Bound the command to C-a b
# http://www.samsarin.com/blog/2007/03/11/gnu-screen-working-with-the-scrollback-buffer/
bind b eval "writebuf" "exec sh -c 'pbcopy < /tmp/screen-exchange'"