-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.screenrc
66 lines (55 loc) · 3.64 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
defutf8 on
defencoding utf8
encoding utf8 utf8
escape ^z^z
# no zombie
zombie
# disable lockscreen
bind x
startup_message off
vbell off
attrcolor b ".I"
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
term xterm-256color
defbce "on"
truecolor on
defscrollback 10000
msgminwait 0
hardstatus alwayslastline "[%Y/%m/%d %c] %`%-w%{=b 0;7}%n %t%{-}%+w"
bind j eval 'focus down'
bind k eval 'focus up'
bind h eval 'focus left'
bind l eval 'focus right'
bind t eval 'focus top'
bind b eval 'focus bottom'
bind w eval 'echo "Operate window"' 'command -c operate'
bind -c operate j eval 'focus down' 'command -c operate'
bind -c operate k eval 'focus up' 'command -c operate'
bind -c operate h eval 'focus left' 'command -c operate'
bind -c operate l eval 'focus right' 'command -c operate'
bind -c operate t eval 'focus top' 'command -c operate'
bind -c operate + eval 'resize -v +1' 'command -c operate'
bind -c operate - eval 'resize -v -1' 'command -c operate'
bind -c operate > eval 'resize -h +1' 'command -c operate'
bind -c operate < eval 'resize -h -1' 'command -c operate'
# Cheat sheet
#
# ────────────────────────────────────────────────────────────
# C-a digit (select 0-9) Switch to window number 0 - 9
# ────────────────────────────────────────────────────────────
# C-a A (title) Allow the user to enter a name for the current window.
# ────────────────────────────────────────────────────────────
# C-a c, C-a C-c (screen) Create a new window with a shell and switch to that
# window.
# ────────────────────────────────────────────────────────────
# C-a k, C-a C-k (kill) Destroy current window.
# ────────────────────────────────────────────────────────────
# C-a space, C-a n, C-a C-n (next) Switch to the next window.
# ────────────────────────────────────────────────────────────
# C-a backspace, C-a C-h, C-a p, C-a C-p (prev) Switch to the previous window (opposite of C-a n).
# ────────────────────────────────────────────────────────────
# C-a [, C-a C-[, C-a esc (copy) Enter copy/scrollback mode.
# ────────────────────────────────────────────────────────────
# C-a C-], C-a ] (paste .) Write the contents of the paste buffer to the stdin queue
# of the current window.
# ────────────────────────────────────────────────────────────