-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.tmux.conf
50 lines (38 loc) · 1.36 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
bind -n M-a choose-tree -s
# Vimのキーバインドでペインを移動する
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# コピーモードでvimキーバインド
setw -g mode-keys vi
# 'v' で選択を始める
bind -T copy-mode-vi v send -X begin-selection
# C-vで矩形選択の切り替え
bind -T copy-mode-vi C-q send -X rectangle-toggle
# bind -T vi-copy C-q rectangle-toggle
# Vimのキーバインドでペインをリサイズする
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
# 新しいPaneを開く場合
bind c new-window -c '#{pane_current_path}'
# 現在のPaneを水平分割してWindowを開く
bind \\ split-window -h -c '#{pane_current_path}'
# 現在のPaneを垂直分割してWindowを開く
bind - split-window -v -c '#{pane_current_path}'
#256色対応
set -g default-terminal "tmux-256color"
# set -g default-terminal "screen-256color"
# set -g terminal-overrides ",xterm-256color:Tc"
set-option -g default-terminal "tmux-256color"
set-option -ga terminal-overrides ",xterm-256color:RGB"
set -g default-terminal "xterm"
set -g display-time 2000
# 異なるサイズの端末からアクセスした時にリサイズ
setw -g aggressive-resize on
#マウススクロール反映
#set-window-option -g mode-mouse on
set -g mouse on
guibg=NONE