feat(shell): write tmux defaults to /etc/tmux.conf #35
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/shell-tmux-defaults"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
With
shell_tmux_autostarton, the shell role attaches a tmux that runs on tmux's own defaults. The mouse is off, so Ghostty turns the wheel into arrow keys and the shell walks its command history instead of scrolling, and each pane keeps only 2000 lines.What changed
Wherever
shell_tmux_autostartis on, the role writes/etc/tmux.confwith the mouse on and 50000 lines of history, keeping a backup of any file the host had. tmux reads each user's~/.tmux.confafter it, so vi keys andset-clipboard onstay personal choices; tmux's defaultset-clipboard externalalready sends a mouse selection to the terminal's clipboard. Sessions already running keep their options until the server restarts or runstmux source-file /etc/tmux.conf, as the role README now says. Turning the switch off leaves the file in place, as it leaves the package.The shell scenario plants a host
/etc/tmux.conf, checks that it is replaced with a backup beside it, and starts a tmux server with no-fto prove it finds the defaults on its own.Verification
make check: passed (ansible-lint production profile with 0 failures, and every gate that needs no podman).mouse onandhistory-limit 50000(tmux's defaults:mouse off,2000,set-clipboard external, withxterm*carrying theclipboardfeature), and the binary reads/etc/tmux.conffirst.make testandmake verify, since the authoring sandbox has no podman. The scenario'sstart-server ; show-optionsform is checked on tmux 3.6 only, while the scenario image carries Debian 12's 3.3a.Risks and follow-ups
The change reaches every host with autostart on, in the home and hive tenants, and touches only
/etc/tmux.conf, so it cannot lock anyone out. Still owed:make test, and a check from Ghostty on a converged host that the wheel scrolls and a mouse selection pastes locally.