-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
33 lines (27 loc) · 1.14 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
set -g prefix C-q
set-option -g default-terminal screen-256color
set -g terminal-overrides 'xterm:colors=256'
# ペインの移動
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# ペインのリサイズ
bind-key -n M-Left resize-pane -L 4
bind-key -n M-Down resize-pane -D 4
bind-key -n M-Up resize-pane -U 4
bind-key -n M-Right resize-pane -R 4
# Set new panes to open in current directory
# https://gist.github.com/william8th/faf23d311fc842be698a1d80737d9631
bind c new-window -c "#{pane_current_path}"
# ペインの分割
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
# Copy modeのキーバインド変える
# https://dev.to/iggredible/the-easy-way-to-copy-text-in-tmux-319g
setw -g mode-keys vi
# Vimで複数行コピーするための設定
# https://tyablog.net/2017/10/10/vim-error-nothing-in-register/
set -g default-command "reattach-to-user-namespace -l ${SHELL}"
bind-key -T copy-mode-vi y send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
bind-key -T copy-mode-vi Enter send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"