-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
57 lines (44 loc) · 1.41 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
52
53
54
55
56
57
# Set vi mode
set-window-option -g mode-keys vi
# Start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
# Renumber when deleting a window
set-option -g renumber-windows on
# Don't rename
set-option -wg automatic-rename off
# Mouse on
set -g mouse on
# Neovim conf
set-option -sg escape-time 0
set-option -g focus-events on
# Change prefix
unbind C-b
set-option -g prefix C-q
bind-key C-q send-prefix
# Make sure colors are right
set-option -sa terminal-features ',alacritty:RGB'
set-option -ga terminal-overrides ',alacritty:RGB:Tc'
# status bar config
set-option -g status on
set-option -g status-interval 1
set-option -g status-keys vi
set-option -g status-position bottom
# Selection keys
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
# Enter copy mode with `prefix v`
bind-key -T prefix v copy-mode
# Source config file
bind r source-file ~/.tmux.conf \; display '~/.tmux.conf sourced'
# remap split and open windows in same directory
bind -r _ split-window -c "#{pane_current_path}"
bind -r - split-window -h -c "#{pane_current_path}"
bind -r c new-window -c "#{pane_current_path}"
# pane navigation
bind -r h select-pane -L # move left
bind -r j select-pane -D # move down
bind -r k select-pane -U # move up
bind -r l select-pane -R # move right
# Rebind last window since it's now navigation
bind -r tab last-window