-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.tmux.conf
More file actions
67 lines (49 loc) · 1.75 KB
/
.tmux.conf
File metadata and controls
67 lines (49 loc) · 1.75 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
# set: set-option
# setw: set-window-option
# Prefix `とC-bをF12で切り替える
set -g prefix `
bind ` run 'tmux last-pane || tmux last-window || tmux new-window'
bind -n F12 run 'fish -c tmux_switch_prefix'
# ウインドウとペイン番号を1から始める
set -g base-index 1
setw -g pane-base-index 1
# ESCのディレイ
set -g escape-time 50
# tmux + ssh + vimで背景透過したい
set -g default-terminal 'screen-256color'
# reload
bind r source-file ~/.tmux.conf \; display-message 'sourced .tmux.conf'
# status bar
set -g status-interval 2
set -g status-left-length 90
set -g status-right-length 90
set -g status-justify centre
set -g status-style 'fg=colour250, bg=colour236'
set -g status-left '#[fg=colour250, bg=colour236] #H'
set -g status-right '#[fg=colour250, bg=colour236]CPU:#{cpu_percentage} | RAM:#{ram_percentage} '
setw -g window-status-format '#{window_index}:#(basename "#{pane_current_path}")'
setw -g window-status-current-format '#[fg=colour236, bg=colour250]**#{window_index}:#(basename "#{pane_current_path}")**'
####################
# key binds
setw -g mode-keys vi
bind c new-window -c '#{pane_current_path}'
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind | split-window -hc '#{pane_current_path}'
bind - split-window -vc '#{pane_current_path}'
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
####################
# plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @continuum-restore 'on'
set -g @plugin 'tmux-plugins/tmux-cpu'
set -g @cpu_percentage_format '%5.1f%%'
set -g @ram_percentage_format '%5.1f%%'
run '~/.tmux/plugins/tpm/tpm'