-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
117 lines (91 loc) · 3.08 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
set-window-option -g mode-keys emacs
#####
# https://github.com/sinnershiki/dot_files/blob/master/.tmux.conf
########################################
# 基本設定
########################################
# Prefix
set-option -g prefix C-t
bind-key C-t send-prefix
unbind-key C-b
# マウス操作を有効にする
setw -g mouse
########################################
# KeyBinding
########################################
bind-key C-r source-file ~/.tmux.conf
# pane & window
unbind 1
unbind ^C
unbind &
unbind C-o
unbind C-Space
unbind t
bind-key 1 break-pane
bind-key 2 split-window -v -c "#{pane_current_path}"
bind-key 3 split-window -h -c "#{pane_current_path}"
bind-key 0 confirm-before -p "kill-pane #P? (y/n)" kill-pane
bind-key i display-panes
bind-key C-t next-window
bind-key c new-window -c "#{pane_current_path}"
bind-key C-K send-keys "clear && tmux clear-history" \; send-keys "Enter"
bind-key < resize-pane -L 10
bind-key > resize-pane -R 10
bind-key < resize-pane -L 10
bind-key > resize-pane -R 10
# copy
set -g default-shell $SHELL
bind-key -T copy-mode C-g send-keys -X cancel
bind-key -T copy-mode M-w send -X copy-pipe-and-cancel "pbcopy"
bind-key C-Space copy-mode
bind-key p paste-buffer
# sync
bind-key e setw synchronize-panes on
bind-key E setw synchronize-panes off
# 256色端末を使用する
set-option -g default-terminal "screen-256color"
#### COLOUR (Solarized dark)
# default statusbar colors
set-option -g status-style bg=black,fg=yellow,default
# set-option -g status-bg black #base02
# set-option -g status-fg yellow #yellow
# set-option -g status-attr default
# default window title colors
set-window-option -g window-status-style fg=brightblue,bg=default
# set-window-option -g window-status-fg brightblue #base0
# set-window-option -g window-status-bg default
# active window title colors
set-window-option -g window-status-current-style fg=brightred,bg=default
# set-window-option -g window-status-current-fg brightred #orange
# set-window-option -g window-status-current-bg default
# pane border
set-option -g pane-border-style fg=black
set-option -g pane-active-border-style fg=brightgreen
# set-option -g pane-border-fg black #base02
# set-option -g pane-active-border-fg brightgreen #base01
# message text
set-option -g pane-border-style fg=black
set-option -g pane-active-border-style fg=brightgreen
# set-option -g message-bg black #base02
# set-option -g message-fg brightred #orange
# pane number display
set-option -g display-panes-active-colour blue #blue
set-option -g display-panes-colour brightred #orange
# clock
set-window-option -g clock-mode-colour green #green
####################
# Plugins
# https://github.com/jonmosco/kube-tmux
# $ ghq get jonmosco/kube-tmux
set -g status-right "#(/bin/bash ~/ghq/github.com/jonmosco/kube-tmux/kube.tmux 250 red cyan)"
set-option -g status-interval 1
# tpm
#
# How to Install
# 1. clone repository
# - `$ git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm`
# 2. Install
# - `prefix` + `I`
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-urlview'
run-shell '~/.tmux/plugins/tpm/tpm'