-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscreenrc
62 lines (52 loc) · 2.21 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
#=========================================================================#
# Filename: screenrc #
# Description: screenrc config #
# Maintainer: Maximilian Q. Wang <[email protected]> #
# URL: https://github.com/Maxlufs/dotfiles #
#=========================================================================#
term screen-256color
# term xterm-256color # need to set $TERM to xterm-256color in bashrc
# term rxvt-256color
# emulate .logout message
pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
# screen default tab sessions
screen -t vim 0
screen -t sh 1
# status line settings
hardstatus alwayslastline
hardstatus string '%{= mW} %H%? %1`%? %{= kg} %= %{= kw}%-w%{+b Yk} %n*%t%?(%u)%? %{-}%+w %= %{g} [%{B}%D %M.%d %{W}%C%A%{g}]'
# original
# hardstatus string '%{= kg}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b Yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%D %M.%d %{W}%C%A%{g}]'
# That's a classic one
# hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %m-%d %{W}%c %{g}]'
# hardstatus string "%{=b}%{G} Screen(s): %{b}%w %=%{kG}%C%A %D, %M/%d/%Y "
# Change default scrollback buffer
defscrollback 100000 # default: 100
# C-a _ monitor silence
silencewait 15 # default: 30
autodetach on # default: on
# C-a C-g toggles virtual bell
vbell off # default: on
# Trun off start message
startup_message off # default: on
defutf8 on # default: off w/o -U
# Turn of alternate screen
altscreen on
# Screensaver
blankerprg cmatrix
idle 600 blanker
# key bindings
bind ^k kill # default C-a K k is a bit clumbsy, keep pressing ctrl
# use X scrolling mechanism
termcapinfo xterm* ti@:te@
# set default dir for buffer and hardcopy
# bufferfile "$HOME/.screen/exchange"
# hardcopydir "$HOME/.screen/hardcopy"
# logfile ~/.backups/.screen/screen_%y-%m-%d_%n
# Allow bold colors
attrcolor b ".I"
# set colors AB = background, AF = foreground
# this garbels colors when $TERM is xterm
# termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E38;5;%dm'
# Erase background with current bg color
defbce "on"