-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
91 lines (72 loc) · 2.34 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
# about copy
# set-option -g default-command "reattach-to-user-namespace -l zsh"
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'nhdaly/tmux-scroll-copy-mode'
set -s escape-time 0
# set-window-option -g mode-mouse on
# prefix
set-option -g prefix C-x
# japanese
setw -g utf8 on
set -g status-utf8 on
# reload setting file with C-x C-r
bind C-r source-file ~/.tmux.conf
# status bar
set -g status-interval 10
set -g status-bg colour100
setw -g window-status-current-fg black
setw -g window-status-current-bg white
# 256 color
set-option -g default-terminal screen-256color
# ペイン移動をVim風に
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# ペインのリサイズをVim風に
bind -r C-h resize-pane -L 5
bind -r C-j resize-pane -D 5
bind -r C-k resize-pane -U 5
bind -r C-l resize-pane -R 5
# マウス操作切替
set-option -g mouse on
# set-option -g mode-mouse on
# set-option -g mouse-select-pane on
# set-option -g mouse-resize-pane on
# set-option -g mouse-select-window on
# bind-key m \
# set -g mode-mouse on \; \
# set -g mouse-select-pane on \; \
# set -g mouse-resize-pane on \; \
# set -g mouse-select-window on \; \
# display "Mouse: ON"
# bind-key M \
# set -g mode-mouse off \; \
# set -g mouse-select-pane off \; \
# set -g mouse-resize-pane off \; \
# set -g mouse-select-window off \; \
# display "Mouse: OFF"
# コマンドラインの色を設定する
set -g message-fg white
set -g message-bg black
set -g message-attr bright
# ヴィジュアルのティフィケーションを有効にする
setw -g monitor-activity on
set -g visual-activity on
# upper status bar
set -g status-position top
# ステータスバーの色を設定する
set -g status-fg white
set -g status-bg black
# Use vim keybindings in copy mode
setw -g mode-keys vi
# Setup 'v' to begin selection as in Vim
bind-key -t vi-copy v begin-selection
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
# Update default binding of `Enter` to also use copy-pipe
unbind -t vi-copy Enter
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'