-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
85 lines (61 loc) · 2.09 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
#
set-option -g prefix C-n
unbind-key C-b
bind-key C-n send-prefix
# キーストロークのディレイを減らす
set -sg escape-time 1
# ウィンドウのインデックスを1から始める
set -g base-index 1
# ペインのインデックスを1から始める
setw -g pane-base-index 1
unbind r
bind r source-file ~/.tmux.conf \; display-message "reloaded"
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind 'c' new-window -c "#{pane_current_path}"
# Vimのキーバインドでペインを移動する
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# bind -r C-h select-window -t :-
# bind -r C-l select-window -t :+
# zsh clear
bind -n C-l send-keys C-l
bind -n C-j send-keys C-j
# 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
# マウス操作を有効にする
#setw -g mouse on
set-option -g mouse on
bind -n WheelUpPane copy-mode
# 256色端末を使用する
set -g default-terminal "screen-256color"
# ステータスバー
set-option -g status-bg "colour238"
set-option -g status-fg "colour255"
set -g status-fg white
set -g status-bg black
set-window-option -g window-status-current-style bg=red
set -g window-style 'bg=colour234'
set -g window-active-style 'bg=colour232'
set -g status-position top
#
## コピーモードを設定する
set-window-option -g mode-keys vi
### クリップボード共有を有効にする
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
bind-key -T copy-mode-vi y send-keys -X copy-pipe "xsel -bi"
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe "xsel -bi"
unbind -n C-\\
set -g @tpm_plugins ' \
tmux-plugins/tpm \
tmux-plugins/tmux-resurrect \
'
run-shell '~/.tmux/plugins/tpm/tpm'
#shell settings
set-option -g default-shell /usr/bin/zsh