-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
54 lines (42 loc) · 1.72 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
# Prefix
set-option -g prefix C-t
set-window-option -g mode-keys vi # コピーモードのキーマップ。標準はemacs
set-window-option -g automatic-rename off # ウィンドウ名が自動的に更新されないように
# http://www.glidenote.com/archives/1767
# status
set -g status-fg cyan
set -g status-bg black
set -g status-left-length 30
set -g status-left '#[fg=white,bg=black]#H#[fg=white]:#[fg=white][#S#[fg=white]][#[default]'
set -g status-right '#[fg=black,bg=cyan,bold] [%Y-%m-%d(%a) %H:%M]#[default]'
# window-status-current
setw -g window-status-current-fg black
setw -g window-status-current-bg cyan
setw -g window-status-current-attr bold#,underscore
# pane-active-border
set -g pane-active-border-fg black
set -g pane-active-border-bg cyan
# http://w.koshigoe.jp/study/?%5Bsystem%5D+tmux%A5%C1%A5%E5%A1%BC%A5%C8%A5%EA%A5%A2%A5%EB#l10
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
set-window-option -g mouse on
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
set-option -g buffer-limit 10000
# ウィンドウ履歴の最大行数
set-option -g history-limit 10000
# http://yonchu.hatenablog.com/entry/20120509/1336587523
bind r source-file ~/.tmux.conf\; display-message "Reload Config!!"
bind C-t last-window
# List of plugins
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'nhdaly/tmux-better-mouse-mode'
setw -g mode-keys vi
set-option -g default-command "reattach-to-user-namespace -l $SHELL"
bind-key v copy-mode \; display "Copy mode!"
bind-key -t vi-copy v begin-selection
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
unbind -t vi-copy Enter
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
bind-key p paste-buffer