-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathtmux.conf
More file actions
71 lines (52 loc) · 1.57 KB
/
tmux.conf
File metadata and controls
71 lines (52 loc) · 1.57 KB
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
########
# Base #
########
# Set the prefix key to Ctrl-a.
unbind C-b
set -g prefix C-a
########
# Misc #
########
# Choose the session.
bind S choose-session
# Set window notifications.
setw -g monitor-activity on
set -g visual-activity off
# Less stretching to get to the first item.
set -g base-index 1
setw -g pane-base-index 1
# Enable mouse mode.
set -g mouse on
# Enable mouse scrollback.
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'"
bind -n WheelDownPane select-pane -t= \; send-keys -M
# Vi mode keys.
setw -g mode-keys vi
# Vim-like copy mode.
bind-key ESCAPE copy-mode
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection
# Copy to system clipboard
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel "xclip -selection clipboard"
# Set titles
set -g set-titles on
setw -g automatic-rename on
# Move window left.
bind-key -r < swap-window -t -1\; select-window -t -1
# Move window right.
bind-key -r > swap-window -t +1\; select-window -t +1
# Rebind fingers jump key
set -g @fingers-jump-key X
# Match decimal numbers.
set -g @fingers-pattern-0 '-?(?:\d+\.\d+|\.\d+)(?![a-zA-Z])'
##########
# Plugin #
##########
# Install plugins
set -g @plugin 'tmux-plugins/tmux-pain-control'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'Morantron/tmux-fingers'
# Initialize TPM
run '~/.tmux/plugins/tpm/tpm'
# Colors
source-file $HOME/library/src/base16-tmux/colors/base16-gruvbox-dark-medium.conf