Commit Graph
9 Commits
Author SHA1 Message Date
daniel fusser d766491573 fixes for claude 2026-08-20 22:23:05 +02:00
daniel fusserandClaude Opus 5 37e38d1722 fix tmux auto-attach spawning nested clients and blocking detach
Two problems made the auto-attach loop:

$TMUX was the only nesting guard, and it is trivially lost - sudo -i,
env -i, ssh, and dropbear all hand back an interactive tty shell with it
unset, so a shell below tmux would start another tmux. The guard also
never checked for a login shell, so anything spawning `$SHELL -i`
(fzf-tmux, file-manager shell escapes, editor :sh) dragged in a whole
tmux client and a fresh grouped session. Now guarded on a login shell
with stdin and stdout both a terminal, a $TERM that can host tmux, and
an exported $TMUX_AUTOSTART that survives into panes and into nested
shells that strip $TMUX.

detach-on-destroy was off while the per-client sessions set
destroy-unattached on. Those fight: detaching destroys the session, and
off means the client is then switched to the most recently active
remaining session instead of being allowed to leave - so detach put you
back into "main". Restored to on, which is also the default.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-17 22:51:30 +02:00
daniel fusser f1f2d9c2e5 add devcontainer 2026-07-09 00:33:52 +02:00
daniel fusser e65c3331b4 switch tmux to individual sessions 2026-07-08 22:23:02 +02:00
daniel fusserandClaude Sonnet 5 b4b2ac91c2 mksh: auto-attach a shared tmux session per host on login
Guarded to only fire for interactive shells with a real tty, when
tmux isn't already active, and only if the tmux binary is found -
so it falls back to a plain shell if any of that isn't true. Not
exec'd, so an unexpected tmux exit also drops back to a normal shell
instead of closing the connection. Replaces manually running bin/tmx.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-08 19:35:47 +02:00
daniel fusserandClaude Sonnet 5 3e44c74ce8 mksh: color the prompt symbol and hostname label by host
Same host-differentiation as the tmux statusbar: blue accent for
prosrvdemadev01, existing yellow/gray colors kept as the default
elsewhere.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-08 19:34:57 +02:00
daniel fusserandClaude Sonnet 5 c0de925634 tmux: color hostname and active tab by host
Adds a blue accent for prosrvdemadev01 in the status bar (hostname
and selected window name), keeping the existing color as the default
for all other hosts, via tmux's native host_short format conditional.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-08 19:33:52 +02:00
dafu ce5bbf3916 add git user default 2026-06-23 00:32:21 +02:00
daniel fusser beeefb13a7 initial commit 2026-06-21 15:35:58 +02:00