-
Notifications
You must be signed in to change notification settings - Fork 0
/
screenrc
68 lines (51 loc) · 1.63 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
########################################
# ~/.screenrc
# GNU screen settings
#
# Sections:
# -> General
# -> Bindings
########################################
########################################
# => General
########################################
# Use C-o as the prefix
escape ^bb
startup_message off
# Show all the current windows
hardstatus alwayslastline "%{b kw}%H %{r}%1`%{w}| %{g}%c %{w}| %{y}%d.%m.%Y %{w}|%{-b kw}%u %-Lw%{= rW}%50> %n%f %t %{-}%+Lw%<"
# Print message on status if activity is detected in a hidden window.
defmonitor on
activity "activity in window %n: %t"
# Don't show messages for too long
msgwait 1
# visual bell is the devil
vbell "off"
# Don't kill window after its child process dies.
zombie "^["
# Fast key presses won't get messed up
maptimeout 5
# Allow ssh-agent to work through screen sessions.
unsetenv SSH_AUTH_SOCK
setenv SSH_AUTH_SOCK $HOME/.screen/ssh-auth-sock.$HOSTNAME
# This is for mouse scroll-wheel support.
# Tell screen that xterm can scroll.
termcapinfo xterm ti@:te@
################
# 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"
########################################
# => Bindings
########################################
# ^a R will source .screenrc without restart
bind R eval "source $HOME/.screenrc" "echo '.screenrc was refreshed'"
# Some defaults from tmux
bind x kill
bind , title