-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_tmux.conf
70 lines (58 loc) · 1.62 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
# Prefix
set-option -g prefix C-z
bind-key C-z send-prefix
# View
set -g message-style bg="red","bold",fg="white"
set -g pane-active-border-style bg="black",fg="cyan"
set -g default-terminal "screen-256color"
# Options
# utf8有効
# set-option -g utf8 on
# コピー、選択モードのキーバインドvi/emacs
set-window-option -g mode-keys vi
# vでマーク開始
bind-key -T copy-mode-vi v send-keys -X begin-selection
# yでヤンク
bind-key -T copy-mode-vi y send-keys -X copy-selection
# ウィンドウ等の番号基準値
set-option -g base-index 1
set-option -g pane-base-index 1
# shell
set-option -g default-command zsh
if-shell 'test "$(uname -s)" = Darwin' 'set-option -g default-command "reattach-to-user-namespace -l zsh"'
# neovim
set -g escape-time 10
set -g focus-events on
# title
setw -g allow-rename on
set-option -g set-titles on
set-option -g set-titles-string "#T #{session_alerts}"
# KeyBindings
unbind l
unbind ^C
unbind x
bind C-r source-file $HOME/.tmux.conf
bind C-t next-window
bind c new-window -c "#{pane_current_path}"
bind -r C-h resize-pane -L 6
bind -r C-l resize-pane -R 6
bind -r C-j resize-pane -D 6
bind -r C-k resize-pane -U 6
bind -r s swap-pane -U
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
bind k kill-pane
bind K kill-window
bind i display-panes
bind y copy-mode
bind p paste-buffer
bind b break-pane
bind h split-window -v -c "#{pane_current_path}"
bind v split-window -h -c "#{pane_current_path}"
bind y copy-mode
bind p paste-buffer
bind Space choose-window
## tmux plugin manager
source $HOME/dotfiles/_tmux/tpm.conf