-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
120 lines (93 loc) · 3.84 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# prefixキーをC-qに変更
set -g prefix C-t
# # C-bのキーバインドを解除
unbind C-b
bind-key C-g display-panes
set -g display-panes-time 10000
#マウス操作を有効にする
set-option -g mouse on
# 設定ファイルをリロードする
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# 256色端末を使用する
set -g default-terminal "screen-256color"
# # ステータスバーの色を設定する
# set -g status-fg white
# set -g status-bg black
# # ウィンドウリストの色を設定する
# setw -g window-status-fg cyan
# setw -g window-status-bg default
# setw -g window-status-attr dim
# # アクティブなウィンドウを目立たせる
# setw -g window-status-current-fg white
# setw -g window-status-current-bg red
# setw -g window-status-current-attr bright
# # ペインボーダーの色を設定する
# set -g pane-border-fg green
# set -g pane-border-bg black
# # アクティブなペインを目立たせる
# set -g pane-active-border-fg white
# set -g pane-active-border-bg yellow
# # コマンドラインの色を設定する
# set -g message-fg white
# set -g message-bg black
# set -g message-attr 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]"
# ## リフレッシュの間隔を設定する(デフォルト 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 default-command "reattach-to-user-namespace -l ${SHELL}"
# set -g default-shell $SHELL
# set -g default-command "reattach-to-user-namespace -l ${SHELL}"
# bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode C-w send-keys -X copy-pipe-and-cancel "pbcopy"
# 新規ウィンドウ
# bind c new-window -c '#{pane_current_path}'
# 新規ペイン
bind '"' split-window -c '#{pane_current_path}'
# bind '%' split-window -c -h '#{pane_current_path}'
# status line を更新する間隔を 1 秒にする
set-option -g status-interval 1
# window-status を中央揃えで配置する
set-option -g status-justify "centre"
# status line の背景色を指定する。
set-option -g status-bg "colour238"
# status line の文字色を指定する。
set-option -g status-fg "colour255"
# status-left の最大の長さを指定する。
set-option -g status-left-length 20
# status-left のフォーマットを指定する。
set-option -g status-left "#[fg=colour255,bg=colour241]Session: #S #[default]"
# status-right の最大の長さを指定する。
set-option -g status-right-length 60
# status-right のフォーマットを指定する。
set-option -g status-right "#[fg=colour255,bg=colour241] #h | LA: #(cut -d' ' -f-3 /proc/loadavg) | %m/%d %H:%M:%S#[default]"
# window-status のフォーマットを指定する。
set-window-option -g window-status-format " #I: #W "
# カレントウィンドウの window-status のフォーマットを指定する
set-window-option -g window-status-current-format "#[fg=colour255,bg=colour27,bold] #I: #W #[default]"
set -g @continuum-restore 'on'
setw -g mode-keys emacs
#===================================
# tpm - Tmux Plugin Manager
#===================================
# Plugins
set -g @plugin 'tmux-plugins/tpm'
# Plugins
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
# prefix + Ctrl-s : 保存
# prefix + Ctrl-r : 復元
# Initialize TMUX plugin manager
# (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'