-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
72 lines (53 loc) · 1.9 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# General Settings
# ----------------
# Make window and pane indexes start with 1
set -g base-index 1
setw -g pane-base-index 1
# Renumber windows sequentially after closing any of them
set -g renumber-windows on
# Enable mouse
set -g mouse on
# Show notices when there is activity on another window
setw -g monitor-activity on
set -g visual-activity off
# Tell Tmux that outside terminal supports true color
set-option -g default-terminal "tmux-256color"
set -as terminal-features ",xterm-256color:RGB"
# Key bindings and mappings
# -------------------------
# Remap prefix from 'C-b' to 'C-a'
unbind C-b
set -g prefix C-a
# Break pane into new window
bind-key b break-pane -d
# "break out" a session based on the current pane,
# even cleaning up the pane after creating the new session
bind-key C-b send-keys 'tat && exit' 'C-m'
# Copy mode settings
# ------------------
# Use vim keybindings in copy mode
setw -g mode-keys vi
# Setup 'v' to begin selection as in Vim
bind-key -T copy-mode-vi v send-keys -X begin-selection
# Setup 'C-v' to begin rectangle selection as in Vim
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle\; send -X begin-selection
# Use Enter to trigger copy mode
bind Enter copy-mode
# Source theme
source-file ~/.tmux/theme.tmux
# Set fish as default shell
set -g default-command /opt/homebrew/bin/fish
set -g default-shell /opt/homebrew/bin/fish
# Plugin Settings
# ---------------
# List of plugins, supports `github_username/repo` or full git repo URLs
set -g @tpm_plugins ' \
tmux-plugins/tpm \
tmux-plugins/tmux-sensible \
tmux-plugins/tmux-pain-control \
tmux-plugins/tmux-prefix-highlight \
christoomey/vim-tmux-navigator \
catppuccin/tmux \
'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'