From 4485609e3ce81f50add571a911088ad098cd7ef5 Mon Sep 17 00:00:00 2001 From: Natalie Date: Wed, 29 Apr 2026 13:27:26 -0400 Subject: [PATCH] =?UTF-8?q?feat(@scripts):=20=E2=9C=A8=20add=20tmux=20conf?= =?UTF-8?q?ig=20installer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- install.sh | 12 ++++++++++++ tmux.conf | 12 ++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 tmux.conf diff --git a/install.sh b/install.sh index 2d2cdcd..04fe9c1 100755 --- a/install.sh +++ b/install.sh @@ -41,6 +41,18 @@ for src in "$repo_dir"/bin/*; do echo "link: $link -> $src" done +# Install tmux.conf if tmux is present and the user has no existing config. +if command -v tmux >/dev/null 2>&1; then + tmux_conf="$HOME/.tmux.conf" + if [ ! -f "$tmux_conf" ]; then + cp "$repo_dir/tmux.conf" "$tmux_conf" + echo "link: $tmux_conf (installed from repo)" + tmux source "$tmux_conf" 2>/dev/null && echo "ok: tmux config reloaded" || true + else + echo "ok: $tmux_conf already exists — not overwriting" + fi +fi + case ":$PATH:" in *":$target:"*) ;; *) echo "note: add $target to PATH if it isn't already" ;; diff --git a/tmux.conf b/tmux.conf new file mode 100644 index 0000000..efd5ee6 --- /dev/null +++ b/tmux.conf @@ -0,0 +1,12 @@ +# Reduce escape sequence latency — default 500ms makes scroll feel completely broken +# in TUI apps (Claude Code, vim, etc.) because each wheel event uses escape sequences. +set -s escape-time 10 + +# Pass focus events through to applications (Claude Code uses these) +set -g focus-events on + +# True color passthrough +set -ga terminal-overrides ",*256col*:Tc" + +# Larger scrollback for when you need tmux copy mode +set -g history-limit 50000