-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.screenrc
93 lines (78 loc) · 1.93 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
# Use <c-a>+\ to close all sessions. <c-a>+k to close one session.
# message off
startup_message off
# Disable bell notification in screen.
vbell off
bell_msg ""
# Status line.
# See https://www.gnu.org/software/screen/manual/html_node/String-Escapes.html for colors-list.
#caption always "%{= dd}%{+b w}%h %=%{=b rw} %l %{= db} ${USER}@%H %{= dg}%c"
hardstatus alwayslastline '%+0=%{= dd}%l %+9=%{= dd}%n%-19=%{= dd}%y %D %M.%d %0c'
# Define maximum history. 1000 history records consume about 500KiB of RAM per screen.
defscrollback 3000
# control-left and control-right switch windows
bindkey ^[[1;5D prev
bindkey ^[[1;5C next
# navigating regions
bind j focus down
bind k focus up
bind h focus left
bind l focus right
# Create new screens start at 0. XXX: screens start from 5's tty are not pts.
bind c screen 0 bash -c "bash -i <<< '__init;exec </dev/tty;history -c;clear'"
# Source $HOME/.bashrc for all screens
bind at "#" stuff ". ~/.bashrc"
# Source some snippet for all screens
bind at "#" stuff ". /tmp/.snippet"
# Some shortcut for all screens.
bind at "#" stuff "clear"
bind at "#" stuff "cdclear"
bind at "#" stuff ""
# Split.
bind s split
bind v split -v
# resizing regions
bind r resize 68
bind + resize +5
bind - resize -5
bind = resize =
# Default screens.
chdir ~/GitRepo
screen -t Shell0 0
stuff "__init;history -c;clear"
screen -t Shell1 1
stuff "__init;history -c;clear"
screen -t Shell2 2
stuff "__init;history -c;clear"
screen -t Shell3 3
stuff "__init;history -c;clear"
screen -t Shell4 4
stuff "__init;history -c;clear"
# Start at window #0.
select 1
select 0
# Protect this rc file with password.
#+ Edit by <C-A> :password, and <C-A>] to paste the string below.
#password passwd
# Default key bindings that might not be usable in other distro.
bind \ quit
bind : colon
#bind copy
bind [ copy
bind paste
# The paste command is not related to copy.
#bind ] paste
bind ? help
bind K kill
bind X remove