-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscreenrc
executable file
·94 lines (67 loc) · 1.94 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
92
93
# ~/.screenrc
# use visual bell
vbell on
vbell_msg " *beep* "
# no accidental kill
bind K
# set a big scrolling buffer
defscrollback 10000
# 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
# Look and feel
hardstatus alwayslastline '%{= kK}%-Lw%{= KW}%50>%n%f %t%{= kK}%+Lw%< %{=kG}%-= %d%M %c:%s%{-}'
# fix esc issues in vim
maptimeout 0
# Autodetach session on hangup instead of terminating screen completely
autodetach on
# Turn off the splash screen
startup_message off
# scrollback in putty and Terminal.app
# termcapinfo xterm* ti@:te@
# login shells - fixes $PATH problem
shell /bin/zsh
# Activity message
activity "%c activity -> %n%f %t"
# UTF8
setenv LC_CTYPE en_US.UTF-8
defutf8 on
utf8 on on
# no default screen title C-Z A instead
shelltitle ''
# save splits etc
# layout autosave on
# zombies
# c clear r reload (try)
zombie cr
# don't jam entire session
nonblock on
# keybindings
# copies to OS X pasteboard
bind b eval "writebuf" "exec sh -c 'pbcopy < /tmp/screen-exchange'"
#Change keybindings for convenience
bind ^Q mapdefault #these two allow the use of a quote key (?)
bind q mapdefault
bind k
bind ^k
# bind . dumptermcap # default
bind .
bind ^\
bind \\
#bind esc
#bind ''
#don't want to use login when using screen redraw
bind 'L'
#messages
msgwait 3
# bufferfile: The file to use for commands
# "readbuf" ('<') and "writebuf" ('>'):
bufferfile $HOME/.screen_exchange
bell "%c bell -> %n%f %t^G"
term xterm-256color
# vim colorschemes working in screen
attrcolor b ".I"
# Tell screen how to set colors. AB = background, AF=foreground
# :is and following prevent resizing to 80 columns
termcapinfo xterm* 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6lF:'
# Erase background with current bg color. Not needed if TERM=screen-256color
defbce "on"