-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
82 lines (65 loc) · 2.28 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
set -g prefix C-g
set-option -g history-limit 100000
# enable mouse
set-option -g mouse off
# fix remaining word
set -s set-clipboard off
# color
set -g default-terminal "screen-256color"
set-option -ga terminal-overrides "xterm-256color:Tc"
# reduce delay
set -sg escape-time 10
set-option -g repeat-time 500
# index number
set -g base-index 1
set -g pane-base-index 1
# split window
bind s split-window -h -c '#{pane_current_path}'
bind v split-window -v -c '#{pane_current_path}'
# select pane
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# resize pane
bind -r H resize-pane -L 8
bind -r J resize-pane -D 8
bind -r K resize-pane -U 8
bind -r L resize-pane -R 8
# remove pane
bind q kill-pane
#vi key bind
set-window-option -g mode-keys vi
# Mac OS X pasteboardを使用できるようにする
# Setup 'v' to begin selection as in Vim
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
# Update default binding of `Enter` to also use copy-pipe
unbind -T copy-mode-vi Enter
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
bind ] run "reattach-to-user-namespace pbpaste | tmux load-buffer - && tmux paste-buffer"
# setting of tmux powerline
set-option -g status on
set-option -g status-right-length 100
set-option -g status-left-length 150
set-option -g status-interval 1
# set-option -g default-shell "{$SHELL}"
# set -g default-command "{$SHELL}"
# prefix+r で設定のリロード
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# ステータスラインの色を変更
setw -g status-style fg=colour255,bg=colour234
# status-leftを非表示にする
set -g status-left ""
# status-rightを非表示にする
set -g status-right ""
# window-statusを右寄せにする
set -g status-justify left
# windowのインデックスを1から始める
set -g base-index 1
# window-statusの見た目を変更
setw -g window-status-current-format '#[bg=colour230,fg=colour255] #I #W '
setw -g window-status-format '#[fg=colour230] #I #W '
setw -g window-status-current-format '#[bg=colour2,fg=colour255]#{?client_prefix,#[bg=colour3],} #I #W '
set-option -g status-position top
set-option -g focus-events on