-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
43 lines (34 loc) · 1.07 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
# Prefix and Bindings
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
bind-key r source-file ~/.tmux.conf
# Copy paste mode
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X rectange-toggle
unbind -T copy-mode-vi Enter
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel 'xclip -se c -i'
bind P paste-buffer
# Use s/v to split windows
bind v split-window -h -c "#{pane_current_path}"
bind s split-window -v -c "#{pane_current_path}"
bind S list-sessions
unbind '"'
unbind %
# Neovim likes this
set-option -g focus-events on
# Vim-style navigation
bind k select-pane -U
bind j select-pane -D
bind h select-pane -L
bind l select-pane -R
bind-key m command-prompt -p "send pane to:" "join-pane -t :'%%'"
set -g mouse on
set-window-option -g mode-keys vi
# Colors
set-option terminal-overrides ",alacritty:RGB"
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set-option -sg escape-time 10
source-file ~/dotfiles/tokyonight.nvim/extras/tmux/tokyonight_moon.tmux
run '~/.tmux/plugins/tpm/tpm'