-
Notifications
You must be signed in to change notification settings - Fork 0
/
.screenrc
103 lines (95 loc) · 4.12 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
94
95
96
97
98
99
100
101
102
103
startup_message off
# termcapinfo xterm*|Eterm|mlterm|rxvt 'hs:ts=\E]0;:fs=\007:ds=\E]0;screen\007'
termcapinfo rxvt-unicode ti@:te@ #enable SHIFT-PGUP / SHIFT-PGDOWN scroll
# termcapinfo wy* CS=\E[?1h:CE=\E[?1l:vi=\E[?25l:ve=\E[?25h:VR=\E[?5h:VN=\E[?5l:cb=\E[1K:CD=\E[1J
terminfo rxvt-unicode ti@:te@:
term screen-256color
setenv LC_CTYPE en_US.UTF-8
defutf8 on
setenv DISPLAY ':0'
nonblock on
vbell off
msgwait 10
chdir /Users/ivankruchkoff/webpres/system/application
screen -t webpres 1
chdir /Users/ivankruchkoff/macports/apache2/logs
screen -t apachelogs 2 tail -f webroot_8000-error_log
chdir /Users/ivankruchkoff/webpres/system/logs
screen -t wplogs 3 /Users/ivankruchkoff/bin/latest-webpres-logs.sh
chdir
screen -t rss 4 canto
bind = resize =
bind + resize +1
bind - resize -1
bind _ resize max
bind c screen 1 # Window numbering starts at 1, not 0.
bind 0 select 10
bind l next
bind h prev
bind j focus up
bind k focus down
bind a screen
bind s split
bind q remove
bind b eval "writebuf" "exec sh -c 'pbcopy < /tmp/screen-exchange'"
escape \140\140 # ` instead of ^a for command
bindkey -d -k k5 escape ^O^O # bound to F5
bindkey -d -k k6 escape \140\140 # bound to F6
# make life easier, f1-f10 selects screens 0-9
# bindkey -k k1 select 1
# bindkey -k k2 select 2
# bindkey -k k3 select 3
# bindkey -k k4 select 4
# bindkey -k k5 select 5
# bindkey -k k6 select 6
# bindkey -k k7 select 7
# bindkey -k k8 select 8
# bindkey -k k9 select 9
# bindkey -k k0 select 0
# windows select with Shift-Fn. May not work in all terminals.
# (screen only seems to understand up to FA)
# bindkey -k F3 select 1
# bindkey -k F4 select 2
# bindkey -k F5 select 3
# bindkey -k F6 select 4
# bindkey -k F7 select 5
# bindkey -k F8 select 6
# bindkey -k F9 select 7
# bindkey -k FA select 8
# bindkey -k k7 detach # bind F7 to detach screen session from this terminal
# bindkey -k k8 kill # bind F8 to kill current screen window.
# bindkey -k k9 next # bind F9 to move to previous window
# bindkey -k F1 prev # bind F11 to move to next window
# bindkey -k F2 hardstatus alwaysignore # F12 to turn the status bar on
# bindkey -k k9 screen # bind F9 to create a new screen
# bindkey -k k; title # bind F10 to rename current screen window
# bindkey -k F1 prev # bind F11 to move to previous window
# bindkey -k F2 next # bind F12 to move to next window
bindkey "^[Od" prev # change window with ctrl-left
bindkey "^[Oc" next # change window with ctrl-right
# add CPU idle/sustem/user/interrupt stats
# backtick 100 5 5 tail -1 /var/tmp/vermaden-stats-top
# caption always '%{= wk} %= %100` %='
# An alternative hardstatus to display a bar at the bottom listing the
# windownames and highlighting the current windowname in blue. (This is only
# enabled if there is no hardstatus setting for your terminal)
hardstatus on
hardstatus alwayslastline
# hardstatus string "%w"
# hardstatus string "%{.kW}%-w%{.W}%n %t%{-}%{=b kw}%?%+w%?" #B&W
# hardstatus string "%{.kW}%-w%{.W}%n %t%{-}%{=b kw}%?%+w%? %=%c %d/%m/%Y" #B&W & date&time
# hardstatus string "%{.kW}%-w%{.W}%n %t%{-}%{=b kw}%?%+w%? %=%c %d/%m/%Y" #B&W & date&time
# hardstatus string '%{= R}[%{w}%H%{R `pwd`}][%{w}%=%?%-Lw%?%{R}%n*%f%t%?(%u)%? %{w}%?%+Lw%?%?%=%{R}][%{w}%m/%d %{W}%C%A%{R}]'
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]'
# hardstatus string "%{= kR}%-Lw%{=r}%20>%n %t%{= ky}%+Lw %{= ky}%-=| %{= kw}%M%d %c%{-} %{=r} ${USER}@%H "
# hardstatus string "%{.kW}%-w%{.W}%n %t%{-}%+w %=%C %a "
# hardstatus string "%{=b kw} %?%-Lw%?%{=br kw}[%n %t]%{=b kw}%?%+Lw%? %="
# hardstatus alwayslastline '%{bk}[ %{W}%H %{b}][ %{w}%l%{b} ] %{b}[%{w} %D %d.%m %c:%s%{b} ]'
# hardstatus alwayslastline '%{bk}[%{W}%H%{b}] %{w} %l %= %n*%t%{-b r}%{w}%+w %= %{w}%d %D %{w}%c'
# hardstatus alwayslastline '%{wk}[ %{g}][%= %{wk}%?%-Lw%?%{=b kR}(%{W}%n*%f %t%?(%u)%?%{=b kR})%{= kw}%?%+Lw%?%?%= %{g}][%{Y}%l%{g}]%{=b C}[ %m/%d %c ]%{W}'
sorendition kw
# hardcopydir: The directory which contains all hardcopies.
# hardcopydir ~/.hardcopy
hardcopydir ~/.screen
scrollback 10000
defscrollback 10000