-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
100 lines (79 loc) · 2.76 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
setw -g mouse on
# don't rename windows automatically
set-option -g allow-rename off
# window and pane start number 1
set-option -g base-index 1
set-window-option -g pane-base-index 1
set-option -g default-terminal "screen-256color"
set-option -g status-interval 1
set-option -g status-justify left
set-option -g status-position bottom
set-option -g status-right "%y/%m/%d %T"
set-option -g status-right-length 50
set-option -g status-utf8 on
set-option -g status-fg white
set-option -g status-bg black
set-option -g status-attr default
set-window-option -g window-status-fg blue
set-window-option -g window-status-bg black
set-window-option -g window-status-current-fg green
set-window-option -g window-status-current-bg default
set-window-option -g window-status-current-attr bright
# pane border color
set-option -g pane-border-fg default
set-option -g pane-active-border-fg red
# message color
set-option -g message-fg red
set-option -g message-bg black
# pane number color 'prefix + q'
set-option -g display-panes-active-colour red
set-option -g display-panes-colour green
set-window-option -g automatic-rename on
set-window-option -g clock-mode-colour green
set-window-option -g mode-keys vi
# vim like copy mode
bind c copy-mode
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 "xsel -ib"
bind -n C-P run-shell "xsel -ob | head -1 | xargs -0 tmux set-buffer && tmux paste-buffer"
# fix escape for the sake of vim
set -sg escape-time 1
# clear bindings
unbind C-b
unbind '"'
unbind %
# nicer prefix
set -g prefix C-x
bind Space send-prefix
# do like terminator
bind -n C-E split-window -h -c '#{pane_current_path}'
bind -n C-S-Left resize-pane -L 3
bind -n C-S-Right resize-pane -R 3
bind -n C-S-Up resize-pane -U 3
bind -n C-S-Down resize-pane -D 3
bind -n C-O split-window -v -c '#{pane_current_path}'
bind -n C-T new-window -c '#{pane_current_path}'
bind -n C-N next-window
bind -n C-P previous-window
bind -n C-W killp
# move panes without prefix
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# tmuxline.vim設定
# source-file ~/.tmux/tmuxline.conf
bind r source-file ~/.tmux.conf\; display "Reloaded!"
# List of plugins
# set -g @plugin 'tmux-plugins/tpm'
# set -g @plugin 'tmux-plugins/tmux-sensible'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin '[email protected]/user/plugin'
# set -g @plugin '[email protected]/user/plugin'
run-shell "${HOME}/.local/bin/powerline-daemon -q"
source "${HOME}/.local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf"
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
# run '~/.tmux/plugins/tpm/tpm'