-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.screenrc
More file actions
61 lines (48 loc) · 1.62 KB
/
Copy path.screenrc
File metadata and controls
61 lines (48 loc) · 1.62 KB
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
# vim: fdm=marker
startup_message off
# babun on windows doesn't have utmp, i don't really work in situations
# where not being listed is a concern
deflogin off
# use xterm scrollbacks
termcapinfo xterm* ti@:te@
# pass-through 256-color mode
attrcolor b ".I"
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
defbce "on"
altscreen
# status line & cur window in screen title
termcapinfo xterm*|Eterm|mlterm "hs:ts=\E]0;:fs=\007:ds=\E]0;screen\007"
hardstatus off
hardstatus string "screen %n (%t)%? [%h]%?"
caption always "%{-u wb}%-w%{+u Wb}%n%f*%t%{-}%+w"
# split movements with C-a arrow
bind -k kl focus left
bind -k kd focus down
bind -k ku focus up
bind -k kr focus right
bind -k -a kl focus left
bind -k -a kd focus down
bind -k -a ku focus up
bind -k -a kr focus right
# F2 puts Screen into resize mode. Resize regions using hjkl keys.
bind R eval "command -c rsz" # enter resize mode
# resize mode keys {{{
# use hjkl keys to resize regions
bind -c rsz h eval "resize -h -5" "command -c rsz"
bind -c rsz j eval "resize -v -5" "command -c rsz"
bind -c rsz k eval "resize -v +5" "command -c rsz"
bind -c rsz l eval "resize -h +5" "command -c rsz"
# quickly switch between regions using tab and arrows
bind -c rsz \t eval "focus" "command -c rsz" # Tab
bind -c rsz -k kl eval "focus left" "command -c rsz" # Left
bind -c rsz -k kr eval "focus right" "command -c rsz" # Right
bind -c rsz -k ku eval "focus up" "command -c rsz" # Up
bind -c rsz -k kd eval "focus down" "command -c rsz" # Down
# }}}
# and local settings
source $HOME/.screenrc.local
# skip window 0
bind c screen 1
bind ^c screen 1
bind 0 select 10
screen 1