-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtmux.conf
More file actions
73 lines (58 loc) · 2.01 KB
/
tmux.conf
File metadata and controls
73 lines (58 loc) · 2.01 KB
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
# ステータスバーを5秒毎に描画し直す
set-option -g status-interval 5
# | でペインを縦に分割する
bind | split-window -h
# - でペインを横に分割する
bind - split-window -v
#prefixキーをC-sにする
# set -g prefix C-s
# C-s*2でtmux内のプログラムにC-sを送る
# bind C-s send-prefix
# キーストロークのディレイを減らす
set -sg escape-time 1
# ウィンドウのインデックスを1から始める
set -g base-index 1
# ペインのインデックスを1から始める
setw -g pane-base-index 1
# ステータスバーをトップに配置する
set-option -g status-position top
# ステータスバーを設定する
set-option -g status-bg "brightblack"
set-option -g status-left ''
set-option -g status-right ''
# set-option -g status-right '[%m/%d(%a)%H:%M]'
# window-statusの見た目を変更
setw -g window-status-current-format '#[bg=brightblue,fg=black,bold] #I: #W '
setw -g window-status-format '#[fg=white] #I: #W'
# コピーモードを設定する
# コピーモードでvimキーバインドを使う
setw -g mode-keys vi
# 'v' で選択を始める
bind -T copy-mode-vi v send -X begin-selection
# 'V' で行選択
bind -T copy-mode-vi V send -X select-line
# 'C-v' で矩形選択
bind -T copy-mode-vi C-v send -X rectangle-toggle
# 'y' でヤンク
bind -T copy-mode-vi y send -X copy-selection
# 'Y' で行ヤンク
bind -T copy-mode-vi Y send -X copy-line
# 'C-p'でペースト
bind-key C-p paste-buffer
# vimのキーバインドでペインを移動する
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# vimのキーバインドでペインをリサイズする
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
set-option -g default-terminal screen-256color
set-option -sa terminal-features ',xterm-256color:RGB'
# マウスでスクロール
set -g mouse on
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
# focus events
set-option -g focus-events on