feat(@scripts): ✨ add tmux config installer
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
5c9d05e4d0
commit
4485609e3c
2 changed files with 24 additions and 0 deletions
12
install.sh
12
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" ;;
|
||||
|
|
|
|||
12
tmux.conf
Normal file
12
tmux.conf
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Reference in a new issue