-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
89 lines (71 loc) · 2.54 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
86
87
88
89
# ----------- Prefix key & Reload -----------
set-option -g prefix C-g
bind-key C-g send-prefix
unbind-key C-b
unbind r
bind r source-file ~/.tmux.conf\; display-message "tmux reloaded"
# ----------- Shortcut Keys -----------
bind-key b previous-window
unbind f
bind-key f next-window
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
bind-key s split-window -v
bind-key - split-window -v
bind-key v split-window -h
bind-key | split-window -h
# bind -n C-w kill-pane
bind w kill-pane
bind g copy-mode
bind C-g copy-mode
# ----------- View -----------
# 256色端末を使用する
set-option -g default-terminal "screen-256color"
# ウィンドウ(タブ)を閉じた時、ウインドウ番号を付番をしなおす
set-option -g renumber-windows on
# ペインボーダーの色を設定する
set -g pane-active-border-fg white
set -g pane-border-fg blue
## ヴィジュアルノーティフィケーションを有効にする
setw -g monitor-activity on
set -g visual-activity on
# ----------- Statusbar -----------
# ウィンドウリストの色を設定する
setw -g window-status-fg blue
setw -g window-status-bg default
setw -g window-status-attr dim
# アクティブなウィンドウを目立たせる
setw -g window-status-current-fg white
setw -g window-status-current-bg black
setw -g window-status-current-attr bright,bold#,underscore
# ステータスバーのUTF-8サポートを有効にする
set -g status-utf8 on
set -g status-position top
set -g status on
set -g status-interval 1
set -g status-utf8 on
set -g status-justify "centre"
set -g status-bg black
set -g status-left-length 60
set -g status-right-length 90
set -g status-left "#(./tmux-powerline/powerline.sh left)"
set -g status-right "#(./tmux-powerline/powerline.sh right)"
# ----------- Mouse -----------
set-option -g mouse on
# ----------- Copy -----------
# Use vim keybindings in copy mode
setw -g mode-keys vi
# Setup 'v' to begin selection as in Vim
bind-key -t vi-copy C-v begin-selection
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
# Update default binding of `Enter` to also use copy-pipe
unbind -t vi-copy Enter
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
# ----------- Other -----------
# vim <=> tmux 間でクリップボード利用を可能にする
set -g default-command "reattach-to-user-namespace -l zsh"
# ----------- powerline --------------
run-shell "powerline-daemon -q"
source “~/Library/Python/2.7/lib/python/site-packages/powerline/bindings/tmux/powerline.conf"