-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
44 lines (34 loc) · 1 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
set-option -g default-shell /bin/zsh
# split windows like vim
# vim's definition of a horizontal/vertical split is reversed from tmux's
bind s split-window -v
bind v split-window -h
# vi-style controls for copy mode
setw -g mode-keys vi
# make index start from 1
set -g base-index 1
setw -g pane-base-index 1
# Key binding: send-prefix
set-option -g prefix C-s
unbind-key C-b
bind-key C-s send-prefix
# move around panes with hjkl, as one would in vim after pressing ctrl-w
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
unbind z
bind z run-shell -b 'tmux-resize-screen'
# Shift arrow to switch windows
bind -n S-Left previous-window
bind -n S-Right next-window
setw -g mode-keys vi
set -g display-time 1
# Mouse mode
set -g mouse on
# List of plugins
set -g @plugin 'catppuccin/tmux'
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'