-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
executable file
·69 lines (61 loc) · 1.7 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
# action key
unbind C-b
set-option -g prefix C-a
bind r send-key C-q
# basic settings
##set-option utf8-default on
set-option -g mouse-select-pane
set-window-option -g mode-keys vi
set-window-option -g utf8 on
# look'n feel
set-option -g status-fg cyan
set-option -g status-bg black
set-window-option -g window-status-attr "underscore"
set-window-option -g window-status-bg blue
set-window-option -g window-status-fg green
set-window-option -g window-status-current-attr "bold"
set-window-option -g window-status-current-fg white
set-window-option -g window-status-current-bg cyan
# make new window and rename it
bind -n C-t new-window
bind \; new-window \; command-prompt "rename-window '%%'"
# swiching between windows
#bind C-p previous-window
#bind C-e next-window
bind C-a last-window
# ctrl + 左右矢印でウィンドウ切替
#unbind-key C-Left
#bind-key -n C-Left previous-window
#unbind-key C-Right
#bind-key -n C-Right next-window
unbind-key C-j
bind-key -n C-j previous-window
unbind-key C-k
bind-key -n C-k next-window
# prefix + spaceでウィンドウの一覧表示
bind Space choose-window
# 縦画面分割、横画面分割をviライクに割当
bind s split-window -v
bind v split-window -h
# 分割画面への移動をviライクに割当
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
#unbind-key C-h
#unbind-key C-l
#unbind-key C-j
#unbind-key C-k
#bind C-h resize-pane -L 6
#bind C-l resize-pane -R 6
#bind C-j resize-pane -D 6
#bind C-k resize-pane -U 6
### コピーモード設定
## yでコピーモード
bind y copy-mode
# vでマーク開始
bind -t vi-copy v begin-selection
# yでヤンク
bind -t vi-copy y copy-selection
# ペースト
bind p paste-buffer