-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
48 lines (38 loc) · 1.28 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
# Enable color
set -g default-terminal 'xterm-256color'
set -ga terminal-overrides ",xterm-256color:Tc"
# Enable mouse scrolling by default
set -g mouse on
# Bind a key to toggle mouse mode for copying to OS clipboard
bind m set -g mouse \; resize-pane -Z
# Use Vim bindings for selecting and yanking text
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi r send -X rectangle-toggle
# Use vi key bindings
setw -g mode-keys vi
# Change prefix key binding
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# Start window indices at 1 and keep tightly packed
set -g renumber-windows on
set -g base-index 1
setw -g pane-base-index 1
# Status bar
set -g status-style fg=white,bg=default
set -g status-left '#{?window_zoomed_flag,🔍 ,}#{?mouse,🐁 ,}#S ❯ '
set -g status-left-length 16
set -g status-right ''
# Window status
setw -g window-status-current-style fg=green
setw -g window-status-last-style fg=yellow
setw -g window-status-current-format '#W'
setw -g window-status-format '#W'
setw -g window-status-separator ' '
# Load plugins
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-pain-control'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
run '~/.tmux/plugins/tpm/tpm'