-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
124 lines (93 loc) · 3.68 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# vim: ft=tmux
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-pain-control'
set -g @plugin 'tmux-plugins/tmux-sessionist'
set -g @plugin 'seebi/tmux-colors-solarized'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
set -g @plugin 'tmux-plugins/tmux-yank'
# set -g @plugin 'tmux-plugins/tmux-resurrect'
# set -g @plugin 'tmux-plugins/tmux-continuum'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin '[email protected]/user/plugin'
# set -g @plugin '[email protected]/user/plugin'
set-option -g default-shell "${SHELL}"
set -g default-command "${SHELL}"
if-shell "uname | grep -q Darwin" "source-file ~/dotfiles/.tmux.conf.osx"
if-shell "uname | grep -q Linux" "source-file ~/dotfiles/.tmux.conf.linux"
# set -g @resurrect-processes 'ssh bundler rails google-ime-skk'
# set -g @resurrect-capture-pane-contents 'on'
# set -g @continuum-boot 'off'
# set -g @continuum-restore 'on'
# set -g @continuum-save-interval '1'
set -g @prefix_highlight_show_copy_mode 'on'
# status
set -g status on
set -g status-interval 2
# set -g status-utf8 on
set -g status-justify "left"
set -g status-left-length 200
set -g status-right-length 200
set -g display-time 2000
set -g mouse on
set -g history-limit 50000
set -sg escape-time 0
unbind -n C-p
# Prefix
unbind C-b
set -g prefix C-t
bind C-a send-prefix
# ソースのリロード
bind r source-file ~/.tmux.conf \; display "Reloaded!!"
bind C-c break-pane
# 新規window
set-option -g base-index 1
bind C-t new-window -c "#{pane_current_path}"
set-option -g renumber-windows on
# window移動
bind C-] previous-window
bind C-[ next-window
bind C-w choose-window
bind C-s choose-session
bind C-d select-pane -D
bind C-u select-pane -U
#ウィンドウを実行コマンド名で自動リネーム
# set-window-option -g automatic-rename on
#スクロールモード、コピーモード、選択モードで vi のキーバインドを使う
set-window-option -g mode-keys vi
set -g set-titles on
set -g set-titles-string '#30(whoami)@#H:#30(pwd)'
## ウィンドウマネージャ向けのタイトル
set-option -g set-titles on
set-option -g set-titles-string "[tmux]#T \"#W\"(#I/#P) @ #H"
#### COLOUR (Solarized 256)
# default statusbar colors
set-option -g status-style fg=colour136,bg=colour235 #yellow and base02
# default window title colors
set-window-option -g window-status-style fg=colour244,bg=default #base0 and default
#set-window-option -g window-status-style dim
# active window title colors
set-window-option -g window-status-current-style fg=colour166,bg=default #orange and default
#set-window-option -g window-status-current-style bright
# pane border
set-option -g pane-border-style fg=colour235 #base02
set-option -g pane-active-border-style fg=colour240 #base01
# message text
set-option -g message-style fg=colour166,bg=colour235 #orange and base02
# pane number display
set-option -g display-panes-active-colour colour33 #blue
set-option -g display-panes-colour colour166 #orange
# clock
set-window-option -g clock-mode-colour colour64 #green
# bell
set-window-option -g window-status-bell-style fg=colour235,bg=colour160 #base02, red
set -g @plugin 'erikw/tmux-powerline'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
# set -g window-status-format '#{pane_current_path}'
# set -g window-status-current-format '#{pane_current_path}'
# set -g window-status-format '#I:#(pwd="#{pane_current_path}"; echo ${pwd####*/})#F | #{pane_current_command}'
# set -g window-status-current-format '#I:#(pwd="#{pane_current_path}"; echo ${pwd####*/})#F | #{pane_current_command}'
# set-option -g status-interval 1