-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.screenrc
92 lines (85 loc) · 3.54 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
# 現在の背景色で消去する
defbce "on"
# 太字には明るい色を使う(^[はvimでC-v ESCで入力する)
attrcolor b "^["
# 256色表示設定
term screen
# スクロールバッファは最大10000行にする
defscrollback 10000
# 別画面サポート。Vimやless使うときに便利
altscreen on
# コマンドキーをCtrl+Zにする
escape ^Z^Z
# ビジュアルベル(画面全体が点滅する)を切る
vbell off
# ベルの時はメッセージ(+音)を出す(^GはvimでC-v C-gで入力する)
#bell_msg "Bell in window %^G"
# 端末が落ちたら自動的にデタッチする
autodetach on
# 新しいウィンドウを生成するときのコマンド
shell $SHELL
# スタートアップメッセージを消す
startup_message off
# ログファイルのファイル名
logfile "$HOME/.screen/screen-%Y%m%d-%n.log"
# 標準でログをとる
deflog on
# ウィンドウのタイトル指定
shelltitle '$ |bash'
#メッセージを表示する時間(秒単位)
msgwait 5
#次のメッセージを表示するまでの遅延時間(秒単位)
msgminwait 1
# hardstatus and caption
hardstatus on
hardstatus alwayslastline '%{= .b}%H%{-} %L=%-w%45L>%{=u b.}%n %t%{-}%+w %-17<%=%m/%d %02c:%s'
caption always '%?%F%{= bw}%:%{= wk}%?%2n%f%07=%t%='
sorendition '+r .b'
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
# # Prefixキーの設定
# escape ^Tt
# #ウィンドウ操作モード(^t w でウィンドウを連続的に操作できるようになる)
# bind w eval 'echo "Operate window"' 'command -c operate'
# bind -c operate ^] command
# bind -c operate j eval 'focus down' 'command -c operate'
# bind -c operate k eval 'focus up' 'command -c operate'
# bind -c operate h eval 'focus left' 'command -c operate'
# bind -c operate l eval 'focus right' 'command -c operate'
# bind -c operate t eval 'focus top' 'command -c operate'
# bind -c operate b eval 'focus bottom' 'command -c operate'
# bind -c operate + eval 'resize -v +1' 'command -c operate'
# bind -c operate - eval 'resize -v -1' 'command -c operate'
# bind -c operate > eval 'resize -h +1' 'command -c operate'
# bind -c operate < eval 'resize -h -1' 'command -c operate'
# bind -c operate = eval 'resize -v =' 'command -c operate'
# bind -c operate + eval 'resize -h =' 'command -c operate'
# bind -c operate s eval 'split' 'command -c operate'
# bind -c operate c eval 'screen' 'command -c operate'
# bind -c operate x eval 'remove' 'command -c operate'
# bind -c operate v eval 'split -v' 'command -c operate'
# bind -c operate 0 eval 'select 0' 'command -c operate'
# bind -c operate 1 eval 'select 1' 'command -c operate'
# bind -c operate 2 eval 'select 2' 'command -c operate'
# bind -c operate 3 eval 'select 3' 'command -c operate'
# bind -c operate 4 eval 'select 4' 'command -c operate'
# bind -c operate 5 eval 'select 5' 'command -c operate'
# bind -c operate 6 eval 'select 6' 'command -c operate'
# bind -c operate 7 eval 'select 7' 'command -c operate'
# bind -c operate 8 eval 'select 8' 'command -c operate'
# bind -c operate 9 eval 'select 9' 'command -c operate'
# #通常の操作キー eval 'hoge' になっているのに意味はない
# bind x remove
# bind j eval 'focus down'
# bind k eval 'focus up'
# bind h eval 'focus left'
# bind l eval 'focus right'
# bind + eval 'resize -v +1'
# bind - eval 'resize -v -1'
# bind > eval 'resize -h +1'
# bind < eval 'resize -h -1'
# bind v eval 'split -v' focus screen
# bind s eval 'split' focus screen
# bind = eval 'resize -v ='
# bind + eval 'resize -h +'
# #^t h との誤爆を防ぐために^t ^hは無効にする
# bind ^h