From 73a4ca1dbd42a92839ab03e832f48fe7bed96de7 Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 17 Oct 2026 18:51:30 +0200 Subject: added tmux config to home manager --- home-manager/tmux.conf | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 home-manager/tmux.conf (limited to 'home-manager/tmux.conf') diff --git a/home-manager/tmux.conf b/home-manager/tmux.conf new file mode 100644 index 0000000..ece9774 --- /dev/null +++ b/home-manager/tmux.conf @@ -0,0 +1,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!" -- cgit v1.2.3