-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
51 lines (42 loc) · 1.6 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
# create new window based on current directory
# bind c new-window -c '#{pane_current_path}'
# reduce the delay of key strokes
set -sg escape-time 1
# reload this configuration file
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# make an active window stand out
# setw -g window-status-current-fg black
# setw -g window-status-current-bg red
# setw -g window-status-current-attr bright
# from Neovim checkhealth result
set-option -sa terminal-features ',xterm-256color:RGB'
# change the prefix key
set -g prefix C-Space
unbind C-b
bind C-Space send-prefix
# Some bindigns and unbindings
bind l last
bind C-l last
bind Space copy-mode
bind C-Space copy-mode
unbind [
# configure the copy mode
# enable vi-keybinds
set-window-option -g mode-keys vi
# enable vi-like copy mode operation
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-pipe "reattach-to-user-namespace pbcopy"
unbind -T copy-mode-vi Enter
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe "reattach-to-user-namespace pbcopy"
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'egel/tmux-gruvbox'
set -g @tmux-gruvbox 'dark' # or 'light'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'tmux-plugins/tmux-pain-control'
if "test ! -d ~/.tmux/plugins/tpm" \
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'"
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'