summaryrefslogtreecommitdiff
path: root/home-manager/tmux.conf
blob: ece97740b613676e875f1f53d5c398f69e059568 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Enable mouse support for resizing panes and scrolling
set -g mouse on
set -g base-index 1
set -g default-terminal "tmux-256color"
# Enable True Color support (crucial for code editor themes)
set -ga terminal-overrides ",*256col*:Tc"

# More intuitive split commands that inherit the current directory.
# This is critical for direnv to work smoothly across splits.
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
unbind '"'
unbind %

# Open new windows in the current directory
bind c new-window -c "#{pane_current_path}"

# Reload user tmux config on the fly with Prefix + r
bind r source-file ~/.tmux.conf \; display "Config reloaded!"