-
Notifications
You must be signed in to change notification settings - Fork 5
/
tmux.2021.conf
68 lines (57 loc) · 2.02 KB
/
tmux.2021.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
# Remap prefix from 'C-b' to 'C-a'
unbind C-b # remove bind for C-b
set-option -g prefix C-a
bind-key C-a send-prefix
set -g mouse on
setw -g mode-keys vi
set -g base-index 1
setw -g pane-base-index 1
set -g renumber-windows on
# vi-style copying
bind-key -T copy-mode-vi 'v' send -X begin-selection
# bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
bind c new-window -c "#{pane_current_path}"
# Create Panes: window splitting
# Split vertically. Prefix v to create vertical split
unbind %
bind v split-window -h -c "#{pane_current_path}"
# Split horizontally. Prefix s to create horizontal split
unbind '"'
bind s split-window -v -c "#{pane_current_path}"
# Pane resizing
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# Use <prefix> C-l to clear the screen
bind C-l send-keys 'C-l'
# Choose theme from the tpm plugin tmux-colors-solarized
set -g @colors-solarized 'dark'
###########################
# https://www.barbarianmeetscoding.com/blog/jaimes-guide-to-tmux-the-most-awesome-tool-you-didnt-know-you-needed
# Plugins
###########################
# To install plugins:
# 1) Add plugin down here
# 2) Prefix + I to install plugin
# To update plugins:
# 1) Prefix + U
# To remove plugins:
# 1) Remove line down here
# 2) Prefix + ALT + U
# If you're using iTerm2 on a Mac you may need to go to your Profiles,
# then keys and select that the `option` key should be treated as `Esc+`
# in order for the `Prefix + ALT + U` combination to work.
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# Add more plugins below this line
# Make navigation between tmux and vim panes seamlessly
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'seebi/tmux-colors-solarized'
set -g @plugin 'tmux-plugins/tmux-yank'
# Like vim-easymotion, default use PREFIX + j to jump
# Depends on ruby, installation may be slow
set -g @plugin 'schasse/tmux-jump'
# Run Tmux Plugin Manager
run '~/.tmux/plugins/tpm/tpm'