-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.tmux.conf
75 lines (59 loc) · 2.68 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
# see: https://github.com/tmux-plugins/tpm
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'nhdaly/tmux-better-mouse-mode'
set -g @plugin 'tmux-plugins/tmux-yank'
# prefixキーをC-qに変更する.
# オススメ設定のC-aだとemacsのキーバインドにひっかかるため
set -g prefix C-q
# C-q*2でtmux内のプログラムにC-aを送る
bind C-q send-prefix
# C-bのバインドを解除する
unbind C-b
# キーストロークのディレイを減らす
set -sg escape-time 1
# 設定ファイルをリロードする
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# | でペインを縦に分割する. # かつ、自動で等分サイズにリサイズする.(のはうざかったからやめる)
bind | split-window -h # \ ; select-layout even-horizontal
# - でペインを横に分割する. # かつ、自動で等分サイズにリサイズする.(のはうざかったらやめる)
bind - split-window -v # \; select-layout even-vertical
# マウス操作を有効にする
set-option -g mouse on
# 256色端末を使用する
set -g default-terminal "screen-256color"
# ステータスバーの色を設定する
set -g status-fg white
set -g status-bg black
# ウィンドウリストの色を設定する
setw -g window-status-activity-style fg="cyan",bg="default","dim"
# アクティブなウィンドウを目立たせる
setw -g window-status-current-style fg="white",bg="red","bright"
# ペインボーダーの色を設定する
set -g pane-border-style fg="green",bg="black"
# アクティブなペインを目立たせる
set -g pane-active-border-style fg="white",bg="yellow"
# コマンドラインの色を設定する
set -g message-style fg="white",bg="black","bright"
# ステータスバーを設定する
## 左パネルを設定する
set -g status-left-length 40
set -g status-left "#[fg=green]Session: #S #[fg=yellow]#I #[fg=cyan]#P"
## 右パネルを設定する
set -g status-right "#[fg=cyan][%Y-%m-%d(%a) %H:%M]"
## ステータスバーのUTF-8サポートを有効にする
# これを有効にするとunknown optionと怒られてしまう
# set -g status-utf8 on
## リフレッシュの間隔を設定する(デフォルト 15秒)
set -g status-interval 60
## ウィンドウリストの位置を中心寄せにする
set -g status-justify centre
## ヴィジュアルノーティフィケーションを有効にする
setw -g monitor-activity on
set -g visual-activity on
## ステータスバーを上部に表示する
set -g status-position top
## コピペした時、コピーモードから離脱させない
set -g @scroll-down-exit-copy-mode "off"
## enable tmux-plugin-manager
run -b '~/.tmux/plugins/tpm/tpm'