-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.screenrc
81 lines (56 loc) · 1.59 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
startup_message off
# Status line
hardstatus alwayslastline "%{=} %-w%{+b c}%n*%t%{-b m}%{w}%+w %= %{b}%H %{= G} %D %d %M %c "
# Use zsh instead of bash
shell zsh
# More than 100 lines scrollback please
defscrollback 10000
# UTF FTW
defutf8 on
# Use C-o instead of C-a
escape ^oo
# Emacs movement keys in copy mode
# C-g and other keys quit copy mode
# markkeys \033=\015=^G=^D
# C-a and C-e for start/end of line
markkeys "0=^a:\$=^e"
# Special hack for C-e, since it should go *past* the last char. -m
# means this is for copy mode only.
bindkey -m ^e stuff "$^f"
# C-z and C-v for page up/down (C-z is just used as a destination for
# the M-v binding below)
markkeys "^b=^z:^f=^v"
# Update the page up/down key binding for the new keys
bindkey -m -k kN stuff "^v"
bindkey -m -k kP stuff "^z"
# M-v link to the C-z for page down
bindkey -m "^[v" stuff "^z"
# M-< and M-> for start/end of buffer
bindkey -m "^[<" stuff "g"
bindkey -m "^[>" stuff "G"
# C-p and C-n for up/down single line
markkeys "j=^n:k=^p"
# C-b and C-f for back/forward single char
markkeys "h=^b:l=^f"
# M-b and M-f for back/forward a word at a time
bindkey -m "^[f" stuff "e"
bindkey -m "^[b" stuff "b"
# Start/end marking with C-space
markkeys " =^ "
# Stop C-o C-g from toggling the bell style
bind ^g
# Stop C-o C-x and C-o x from locking screen
bind ^x
bind x
# C-space sets mark.
markkeys ' '=^@
# Show activity
activity "<%n>"
# Always open Emacs and a standard zsh window
screen 0 zsh
# Don't flash
vbell off
# Scroll with scrollbar
termcapinfo xterm* ti@:te@
# Don't display the previous emacs/nano/vim session
altscreen on