forked from tpope/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.screenrc
94 lines (88 loc) · 2.9 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
83
84
85
86
87
88
89
90
91
92
93
94
# ~/.screenrc
term screen-256color
startup_message off
shell -$SHELL
hardstatus on
hardstatus alwayslastline '%H: %-Lw%34>[%n*%f %t]%+Lw'
escape ^\\\ # Ctrl+\ as escape command.
bindkey ^Q command
bindkey ^Z command
defnonblock on
defscrollback 1024
defflow off
termcapinfo xterm*|rxvt*|kterm*|Eterm*|putty*|dtterm* WS=\E[8;%d;%dt
termcapinfo xterm*|rxvt*|kterm*|Eterm*|putty*|dtterm* ti@:te@:G0
termcapinfo xterm*|rxvt*|kterm*|Eterm*|putty*|dtterm* hs:ts=\E]2;:fs=\007:ds=\E]2;8)\007
termcapinfo xterm*|rxvt*|kterm*|Eterm*|putty*|dtterm* XT
termcapinfo Eterm*|linux* C8
termcapinfo * "" Co#256
termcapinfo rxvt*|Eterm* "" *7=\E[8$:%i=\E[c:#4=\E[d:#2=\E[7$
termcapinfo xterm* "" *7=\E[2F:%i=\E[2C:#4=\E[2D:#2=\E[2H
windowlist string "%3n %{= dd}%?%h%:%t%?%=%f%{-}"
caption string "%?%F%{y}%?%3n %{= wk}%?%h%:%t%?%{-}"
activity "Activity in window %n (%t)^G^G"
bell_msg "Bell in window %n (%t)^G"
bind j next
bind ^J next
bind k prev
bind ^K prev
bind K kill
bind z stuff ^Z
bind ` select 0
bind S eval "height 50" "split"
bind Q eval "hardstatus message '%H: %-Lw%34>[%n*%f %t]%+Lw'" "only" "height 24"
bind ^B eval "hardcopy_append off" "hardcopy -h /tmp/.$LOGNAME-screen-urlview" "screen -fn -ln -t urlview urlview /tmp/.$LOGNAME-screen-urlview"
bind ^Y eval "copy" "stuff kY" "paste ."
bind y eval "copy" "stuff kY" "paste ."
bind -c shiftalt A copy # Up
bind -c shiftalt B colon
bind -c shiftalt C next
bind -c shiftalt D prev
bind -c shiftalt P windowlist -b # F1
bind -c shiftalt Q screen
bind -c shiftalt R select 0
bind -c shiftalt S select 1
bind -c shiftalt 0 stuff ^[[20
bind -c shiftalt 1 stuff ^[[21
bind -c shiftalt 3 stuff ^[[23
bind -c shiftalt 4 stuff ^[[24
bindkey -d -k kD
bindkey -d -k kb
bindkey ^[^[[ command -c shiftalt # Rxvt/PuTTY Alt
bindkey ^[^[O command -c shiftalt # Rxvt/PuTTY Alt
bindkey ^[O2 command -c shiftalt # XTerm F-Key Shift
bindkey ^[O3 command -c shiftalt # XTerm F-Key Alt
bindkey ^[[2 command -c shiftalt # XTerm Arrow Shift
bindkey ^[[1;2 command -c shiftalt # XTerm Newest Shift
bindkey ^[[1;3 command -c shiftalt # XTerm Newest Alt
bindkey "^[^I" focus # Alt+Tab
bindkey ^[[Z focus # Shift+Tab
bindkey ^[[a copy # Rxvt/Eterm Shift
bindkey ^[[b colon
bindkey ^[[c next
bindkey ^[[d prev
bindkey ^[Oa copy # Eterm Ctrl
bindkey ^[Ob colon
bindkey ^[Oc next
bindkey ^[Od prev
bindkey ^[^[[3~ detach # Alt+Delete
bindkey ^[[3;3~ detach
bindkey ^[[24~ screen
bindkey ^[[25~ select 0
bindkey ^[[26~ select 1
bindkey ^[[28~ select 2
bindkey ^[[15;2~ select 2
bindkey ^[[29~ select 3
bindkey ^[[17;2~ select 3
bindkey ^[[31~ select 4
bindkey ^[[18;2~ select 4
bindkey ^[[32~ select 5
bindkey ^[[19;2~ select 5
bindkey ^[[33~ select 6
bindkey ^[[20;2~ select 6
bindkey ^[[34~ select 7
bindkey ^[[21;2~ select 7
bindkey ^[[23\$ select 8
bindkey ^[[23;2~ select 8
bindkey ^[[24\$ select 9
bindkey ^[[24;2~ select 9