-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
70 lines (55 loc) · 2.13 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
# 256色のターミナルとして開く
set -g default-terminal screen-256color
#set -ga terminal-overrides ',xterm-256color:Tc'
#set -g default-terminal tmux-256color
# コピーモードでviのキーバインドを有効にする
set-window-option -g mode-keys vi
# 1.9 changed the behaviour of split-window and new-window.
# I prefer the old style for split-window.
unbind %
bind-key % split-window -h -c "#{pane_current_path}"
unbind '"'
bind-key '"' split-window -v -c "#{pane_current_path}"
# 設定しないぞと頑張ってきたけど疲れました
bind -n S-left select-pane -L
bind -n S-down select-pane -D
bind -n S-up select-pane -U
bind -n S-right select-pane -R
# paneリサイズ
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
# パネル番号表示
bind C-g display-panes
set-option -g display-panes-time 10000
# escの反応を早くする
set -s escape-time 0
# マウスのスクロールを使えるようにする
set-window-option -g mouse on
set -g mouse on
bind-key -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M"
bind-key -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; send-keys -M"
## color setting
# status bar
setw -g status-style fg=colour253,bg=colour198
# window
set -g window-style fg=colour247
set -g window-active-style fg=colour15
setw -g window-status-current-style fg=colour15,bg=colour237
# border
set-option -g pane-border-style fg=colour102
set-option -g pane-active-border-style fg=colour9
# ctrl+b :
set -g message-style bg=colour6,fg=colour17
# pane number display (ctrl+b q)
set -g display-panes-active-colour colour33 #blue
set -g display-panes-colour colour166 #orange
set-option -g pane-border-lines single
# # pane保存する
# run-shell ~/.tmux/plugins/tpm/tpm
# # git clone https://github.com/tmux-plugins/tmux-continuum ~/clone/path
# # git clone https://github.com/tmux-plugins/tmux-resurrect ~/clone/path
# set -g @plugin '.tmux/tmux-resurrect'
# set -g @plugin '.tmux/tmux-continuum'
# set -g @continuum-restore 'on'