-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
executable file
·121 lines (92 loc) · 3.06 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
# Prefix
set -g prefix C-t
bind C-t send-prefix
unbind C-b
set -g mouse on
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
# Reload
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Set defaut shell (zsh)
# set -g default-shell /usr/bin/zsh
# set -g default-command /usr/bin/zsh
# Option
set -sg escape-time 1
set -g base-index 1
setw -g pane-base-index 1
setw -g mode-keys vi
# bind-key -t vi-copy Enter copy-pipe "cat | xsel -i --clipboard"
set-option -g history-limit 10000
# vim bindings
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy"
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "pbcopy"
# -----------------------------------------------------
# Key bindings
# -----------------------------------------------------
# Split Pane
bind | split-window -h
bind - split-window -v
# Change pane
bind -n C-left select-pane -L
bind -n C-down select-pane -D
bind -n C-up select-pane -U
bind -n C-right select-pane -R
# Change Window
bind -n C-S-right next-window
bind -n C-S-left previous-window
# Resize pane
# bind -r S-left resize-pane -L 5
# bind -r S-down resize-pane -D 5
# bind -r S-up resize-pane -U 5
# bind -r S-right resize-pane -R 5
bind -n M-left resize-pane -L 2
bind -n M-down resize-pane -D 2
bind -n M-up resize-pane -U 2
bind -n M-right resize-pane -R 2
# -----------------------------------------------------
# Status bar settings
# -----------------------------------------------------
# Left Panel
set -g status-left-length 40
# set -g status-left "#[fg=black,bg=white][#S]"
set -g status-left "#[fg=colour114][session:#S win:#I pane:#I]"
# Right Panel
set -g status-right "#[fg=colour39][%Y-%m-%d(%a) %H:%M]"
# UTF-8
# set -g status-utf8 on
# Refresh
set -g status-interval 60
# Window List Position
set -g status-justify centre
# Visual Notification
#setw -g monitor-activity on
#set -g visual-activity on
# Status Bar Position
set -g status-position bottom
# -----------------------------------------------------
# Color settings
# -----------------------------------------------------
set -g default-terminal "screen-256color"
set -ga terminal-overrides ",xterm-256color:Tc"
# Status Bar
#set -g status-fg white
#set -g status-bg black
set -g status-style fg=colour255,bg=colour236
# Pane Border
# set -g pane-border-style fg=colour255,bg=default
set -g pane-border-style fg=magenta,bg=default
set -g pane-active-border-style fg=colour210,bg=default
set -ag terminal-overrides ",*:U8=0"
# Window List
#setw -g window-status-fg cyan
#setw -g window-status-bg default
# Highlight Active Window
setw -g window-status-current-style fg=colour210
# -----------------------------------------------------
# Plugin
# -----------------------------------------------------
set -g @plugin 'tmux-plugins/tpm' # plugin manager
set -g @plugin 'tmux-plugins/tmux-resurrect'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'