-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
94 lines (72 loc) · 2.74 KB
/
.tmux.conf
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
set -g prefix C-s
set-window-option -g mode-keys vi
# 設定ファイルをリロードする
bind-key r source-file ~/.tmux.conf \; display "Reloaded!"
# キーストロークのディレイを減らす
set -sg escape-time 1
# ウィンドウのインデックスを1から始める
set -g base-index 1
# ペインのインデックスを1から始める
setw -g pane-base-index 1
# | でペインを縦に分割する
bind-key | split-window -h
# - でペインを横に分割する
bind-key - split-window -v
# Vimのキーバインドでペインを移動する
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
bind-key -r C-h select-window -t :-
bind-key -r C-l select-window -t :+
# Vimのキーバインドでペインをリサイズする
bind-key -r H resize-pane -L 5
bind-key -r J resize-pane -D 5
bind-key -r K resize-pane -U 5
bind-key -r L resize-pane -R 5
# ログの保持行数
set-option -g history-limit 100000
# 確認せずにペイン削除する
bind-key x kill-pane
# vでマーク開始
bind-key -Tcopy-mode-vi v send -X begin-selection
# Vで行の先頭からマーク開始
bind-key -Tcopy-mode-vi V send -X select-line
# C-vで矩形選択の切り替え
bind-key -Tcopy-mode-vi C-v send -X rectangle-toggle
# yでヤンク
bind-key -Tcopy-mode-vi y send -X copy-selection
# Yで1行ヤンク
bind-key -Tcopy-mode-vi Y send -X copy-line
# C-pでペースト
bind-key C-p paste-buffer
# 256色端末を使用する
set-option -g default-terminal screen-256color
set -g terminal-overrides 'xterm:colors=256'
# ステータスバーの色を設定する
set-option -g status-fg "colour23"
set-option -g status-bg "colour234"
# ウィンドウリストの色を設定する
setw -g window-status-format "#[fg=colour110,bg=colour234] #I:#W #[default]"
# アクティブウィンドウ
setw -g window-status-current-format "#[fg=colour150,bg=colour234,bright] #I:#W #[default]"
# ペインボーダーの色を設定する
set-option -g pane-border-fg "colour23"
# ステータスバーを設定する
## 左パネルを設定する
set-option -g status-left-length 40
set-option -g status-left "#[fg=colour110]Session: #S #[fg=colour150]#I #[fg=colour110]#P"
## 右パネルを設定する
set-option -g status-right "#[fg=colour110][%Y-%m-%d(%a) %H:%M]"
# メッセージ
set-option -g message-bg "colour110"
# mode
set-option -g mode-bg "colour150"
## リフレッシュの間隔を設定する(デフォルト 15秒)
set -g status-interval 60
## ウィンドウリストの位置を中心寄せにする
set -g status-justify centre
## ヴィジュアルノーティフィケーションを有効にする
setw -g monitor-activity on
set -g visual-activity off
set -ag terminal-overrides ',*:U8=0'