-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
85 lines (68 loc) · 2.85 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
# use utf8
#set-window-option -g utf8 on
#set-option -g status-utf8 on
# improve colors
set -g default-terminal 'screen-256color'
# ウィンドウのインデックスを1から始める
set -g base-index 1
# ペインのインデックスを1から始める
setw -g pane-base-index 1
# key prefix
set-option -g prefix C-t
unbind-key C-b
bind-key C-t send-prefix
set-option -g default-shell "/usr/local/bin/fish"
# c.f. http://robots.thoughtbot.com/post/19398560514/how-to-copy-and-paste-with-tmux-on-mac-os-x
#set-option -g default-command "reattach-to-user-namespace -l $SHELL"
# https://www.hsbt.org/diary/20190818.html#p01
bind-key -T copy-mode C-Space send-keys -X begin-selection
bind-key -T copy-mode C-w send-keys -X copy-pipe-and-cancel "pbcopy"
# copy mode keybinding
#set-option -g mouse-utf8 on
#set-option -g mouse on
set-window-option -g mode-keys emacs
set-option -g history-limit 50000
bind / list-keys -T copy-mode
# cosmetic
## c.f. colour http://materia.jp/blog/20120301.html
# set-option -g status-fg default
# set-option -g status-bg default
# set-option -g status-attr default
set -g status-style fg=default,bg=default,default
#set-option -g pane-border-fg colour245
#set-option -g pane-active-border-fg colour39
# set -g pane-active-border-fg white
# set -g pane-active-border-bg yellow
set -g pane-border-style fg=colour245
set -g pane-active-border-style fg=white,bg=yellow
## メッセージ/プロンプト
# set-option -g message-fg colour115
# set-option -g message-bg colour24
# set-option -g message-attr bright
set -g message-style fg=colour115,bg=colour24,bright
## スクロールの右上やコピーモード選択範囲のスタイル
# set-window-option -g mode-fg colour218
# set-window-option -g mode-bg colour125
# set-window-option -g mode-attr reverse,bold
set-window-option -g mode-style fg=colour218,bg=colour125,reverse,bold
## left
set-option -g status-left-length 32
set-option -g status-left '#[fg=colour244] [#h]'
## right
set-option -g status-right-length 150
set-option -g status-right '#[fg=colour26,bold]%Y/%m/%d(%a) #[fg=colour81]%H#[default,blink,fg=colour45]:#[default,fg=colour81,bold]%M#[default,blink,fg=colour45]:#[default,fg=colour81,bold]%S#[default]'
## main
set -g window-status-format " #I:#W "
set -g window-status-current-format " #I:#W "
#set -g window-status-current-format " #I:#W(#F) "
# not active
# set-window-option -g window-status-fg colour115
# set-window-option -g window-status-bg default
# set-window-option -g window-status-attr bold
set-window-option -g window-status-style fg=colour115,bg=default,bold
# active
# set-window-option -g window-status-current-fg colour253
# set-window-option -g window-status-current-bg colour125
# set-window-option -g window-status-current-attr bold
set-window-option -g window-status-current-style fg=colour253,bg=colour125,bold
set-option -g status-interval 1