-
Notifications
You must be signed in to change notification settings - Fork 1
/
.tmux.conf
82 lines (60 loc) · 2.3 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
# Prefix key
unbind-key C-b
set-option -g prefix C-t
bind-key C-t send-prefix
# Reload config file
bind r source-file ~/.tmux.conf \; display-message '~/.tmux.conf is reloaded!'
set-option -g set-titles on
set-option -g set-titles-string '#(hostname -s):#(pwd | sed -e "s|${HOME}|~|")%% #W'
set-option -g pane-active-border-style fg=green,bg=black
#set -g mode-mouse on
#set -g mouse-resize-pane on
#set -g mouse-select-pane on
#set -g mouse-select-window on
set-option -g mouse on
##########
# Window #
##########
## ウィンドウの番号を1から始める
set-option -g base-index 1
# ウィンドウを閉じたときウィンドウ番号を付け直す
set-option -g renumber-windows on
# viライクなキーバインド
set-window-option -g mode-keys vi
##############
# Status Bar #
##############
# Color code: http://www.calmar.ws/vim/256-xterm-24bit-rgb-color-chart.html
# 256色サポート
set -g default-terminal "xterm-256color"
# Status bar's color
set -g status-style fg=colour253,bg=colour237
# 非アクティブなウィンドウの色
set-window-option -g window-status-style fg=default,bg=default
# アクティブなウィンドウの色
set-window-option -g window-status-current-style fg=colour16,bg=colour178
# Status bar position
set-option -g status-position bottom
# ステータスバー左隅に出すもの
set -g status-left '#[fg=colour32, bold]#S'
# ステータスバー右隅に出すもの
set -g status-right ''
# デフォルトシェルの変更
set-option -g default-shell /bin/zsh
########
# Copy #
########
# Setup 'v' to begin selection as in Vim
#bind-key -t vi-copy v begin-selection
#bind-key -t vi-copy V select-line
#bind-key -t vi-copy C-v rectangle-toggle
#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'
set-option -g default-command "exec reattach-to-user-namespace -l $SHELL"
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi V send-keys -X select-line
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"