feat: tmux send-keys settings in install.sh bootstrap
append escape-time 0, large history-limit, allow-passthrough, and extended-keys to ~/.tmux.conf under an idempotent marker block (no clobber). required for reliable keystroke injection and for notifications/modified-keys to reach the claude pane. Signed-off-by: disqualifier <dev@disqualifier.me>
This commit is contained in:
parent
66b08d290c
commit
d43004e4b9
25
install.sh
25
install.sh
@ -144,4 +144,29 @@ else
|
||||
echo " (no systemd user instance — using rc-based autostart; that's normal on WSL)"
|
||||
fi
|
||||
|
||||
# 8. tmux settings for reliable send-keys (idempotent ~/.tmux.conf append) -------
|
||||
say "configuring tmux for reliable send-keys (~/.tmux.conf)"
|
||||
TMUX_CONF="$HOME/.tmux.conf"
|
||||
TMUX_MARKER="# >>> claudedo tmux >>>"
|
||||
touch "$TMUX_CONF"
|
||||
if grep -qF "$TMUX_MARKER" "$TMUX_CONF"; then
|
||||
echo " claudedo tmux block already present (not duplicating)"
|
||||
else
|
||||
cat >> "$TMUX_CONF" <<'TMUXCONF'
|
||||
|
||||
# >>> claudedo tmux >>>
|
||||
# settings for reliable keystroke injection + notifications (do not edit inside the
|
||||
# markers; re-run install.sh to refresh). escape-time 0 stops injected Escape from
|
||||
# being misread; allow-passthrough + extended-keys let notifications and modified
|
||||
# keys (Shift+Enter) reach the claude pane; the larger history-limit keeps scrollback.
|
||||
set -g escape-time 0
|
||||
set -g history-limit 50000
|
||||
set -g allow-passthrough on
|
||||
set -s extended-keys on
|
||||
set -as terminal-features 'xterm*:extkeys'
|
||||
# <<< claudedo tmux <<<
|
||||
TMUXCONF
|
||||
echo " appended claudedo tmux settings to $TMUX_CONF (reload: tmux source-file ~/.tmux.conf)"
|
||||
fi
|
||||
|
||||
say "done. next: 'claudedo test-audio' then 'claudedo start'"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user