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