-
Notifications
You must be signed in to change notification settings - Fork 0
/
.screenrc
67 lines (57 loc) · 2.09 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
mousetrack off
vbell off
defscrollback 10000
caption 'always'
layout new
screen
split -v
focus
screen
# <screenprefix> then ctrlC creates a new task and immediately offers to rename it,
# clearing the preset name automatically to empty before prompting for a new one:
bind ^c eval screen "title ''" title
# <screenprefix> then shiftA clears the old title when renaming a task:
bind A eval "title ''" title
# <screenprefix> then Enter-key initiates copy-mode:
bind "" copy
# <screenprefix> then question-mark-key starts a reverse search:
bind "?" eval copy "stuff ?"
# <screenprefix> then l focuses right:
bind "l" focus right
# <screenprefix> then h focuses left:
bind "h" focus left
# <screenprefix> then j focuses down:
bind "j" focus down
# <screenprefix> then k focuses up:
bind "k" focus up
# ctrlA then shiftTab focuses previous pane:
bindkey "^A^[[Z" focus prev
# ^ it may be possible to get this to work with regular `bind` (it seems to
# work by default on Cygwin with no explicit binding at all, actually) but
# Ubuntu appears to have problems with it. There may be an .inputrc fix to this
# but the above works for now.
# ctrlA then Up-key enters copy-mode and moves the cursor up:
bindkey "^A^[OA" eval copy "stuff k"
# ctrlA then Left-key enters copy-mode and moves the cursor left:
bindkey "^A^[OC" eval copy "stuff h"
# ctrlA then Right-key enters copy-mode and moves the cursor right:
bindkey "^A^[OD" eval copy "stuff l"
# afford a full second's worth of time for the above bindings before they're
# sent as normal input:
maptimeout 1000
# ctrlL enters command-mode:
bindkey "^L" colon
# Home-key just goes to the begining of the line in copy mode (mark mode):
markkeys "\^=\201"
# End-key just goes to the end of the line in copy mode (mark mode):
markkeys "$=\205"
# to get SQL work layout after executing the above:
# remove # remove right pane
# split # create horizontal split
# focus bottom
# select 1 # call up task 1 again
# If you are using a special TERM or require other specifics on this computer,
# set variables and do other work in this file, otherwise, it can be empty or
# absent:
source .screenrc1