-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_screenrc
78 lines (73 loc) · 2.05 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
# ------------------------------------------------------------------------------
# .screenrc
#
# @ref http://mitukiii.jp/2010/12/31/gnu-screen-install-to-mac/
# @ref http://blog.blueblack.net/item_183
# @ref http://yukirin.dontexist.org/archives/34
# ------------------------------------------------------------------------------
### {{{ BASIC
# 起動時のメッセージなし
startup_message off
# 自動detach
autodetach on
# SHELL
shell -$SHELL
# TERM
term $TERM
# 文字コード
defkanji utf-8
# ビジュアルベルなし
vbell off
# ベルメッセージなし
vbell_msg ""
# スクロールバック
defscrollback 10000
# 背景色を消去
defbce "on"
### }}}
### {{{ LOGS
deflog on
logfile "${HOME}/.screen/logs/screen-%H.%Y%m%d-%0c:%s-%n.%t.log"
logtstamp on
logtstamp string "\n-- SCREEN [%Y/%m/%d %02c:%s] %n:%t --\n"
### }}}
### {{{ DISPLAY
# ステータスライン
hardstatus on
hardstatus alwayslastline "[%{g}%H %Y/%m/%d %c:%s%{-}] | %-w%{=b Kw}%n %t%{-}%+w | %=(%l)"
caption always "%?%F%{=b Kw}%?[%n] %t"
# ウィンドウリスト
windowlist title '%{u .g}Num Flags Title=[0-9] select the number [movement] j,C-n:Down k,C-p:Up (C-)f:PageDown (C-)b:PageUp'
windowlist string '%{.g}%3n %f%09=%{dg} %t %='
### }}}
### {{{ termcapinfo
# Ctrl-矢印キーを使うための設定
termcapinfo xterm* "ks=\E[?1l\E:ku=\E[A:kd=\E[B:kl=\E[D:kr=\E[C:kh=\E[5~:kH=\E[F"
# 256色化
termcapinfo xterm* "Co#256:pa#256:AB=\E[48;5;%dm:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l"
# スクロール設定 (Mac用)
termcapinfo xterm* ti@:te@
### }}}
### {{{ KEY_BIND
# エスケープキー設定
escape ^Ta
# Ctrl-矢印キーでウィンドウ切り替え
bindkey "^[OA" focus prev
bindkey "^[OB" focus next
bindkey "^[OC" next
bindkey "^[OD" prev
# for mac+iterm
bindkey ";5A" focus prev
bindkey ";5B" focus next
bindkey ";5C" next
bindkey ";5D" prev
# create new window
bind ^n screen
# ウィンドウ分割
bind ^s split
bind ^v split -v
bind 0 only
# ウィンドウリスト表示
bind l windowlist -b
bind ^l windowlist -b -m
### }}}