-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.screenrc
63 lines (43 loc) · 1.69 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
# See https://wiki.archlinux.org/index.php/GNU_Screen#Tips_and_tricks
# Turn welcome message off
startup_message off
# Read ~/.bash_profile
shell -$SHELL
# Enable colors
term screen-256color
# Erase background with current bg color
defbce "on"
# 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'
# Enables use of shift-PgUp and shift-PgDn
termcapinfo xterm*|xterms*|xs*|rxvt* ti@:te@
# Cache 30000 lines for scroll back
defscrollback 30000
# New mail notification
# backtick 101 30 15 $HOME/bin/mailstatus.sh
# change command character from ctrl-a to ctrl-b (emacs users may want this)
#escape ^Bb
# http://unix.stackexchange.com/questions/35924/how-do-you-make-tmux-count-windows-starting-with-1-instead-of-0
# Get rid of screen 0
bind c screen 1
bind ^c screen 1
screen 1
# <C-a> 0 to show window list in most-recently-used order
bind 0 windowlist -m
# Fix for Name column in windowlist only show "bash"
# windowlist string "%4n %h%=%f"
# Fix for residual editor text
altscreen on
# Hide hardstatus: ctrl-a f
bind f eval "hardstatus ignore"
# Show hardstatus: ctrl-a F
bind F eval "hardstatus alwayslastline"
caption always '%{= kG}%h'
hardstatus alwayslastline
# See http://www.gnu.org/software/screen/manual/screen.html#String-Escapes
# Very nice tabbed colored hardstatus line
hardstatus string '%{= Kd} %{= Kc}%-w%{= KG}[%{= }%n %t%{= }]%{= Kc}%+w %-= %{KG} %H|%{KY}%101`%{KG}|%D %M %d%{= Kc} %c%{-}'
# Alternate
# hardstatus string '%{= G}[ %{G}%H %{g}][%= %{= w}%?%-Lw%?%{= R}%n*%f %t%?%{= R}(%u)%? %{= w}%+Lw%?%= %{= g}][ %{y}Load: %l %{g}][%{B}%m-%d %{W}%c %{g}]'