diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 7beb9e7..a37781b 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -133,8 +133,10 @@ set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'tmux-plugins/tmux-pain-control' set -g @plugin 'tmux-plugins/tmux-resurrect' -set -g @plugin 'tmux-plugins/tmux-continuum' set -g @plugin 'vaaleyard/tmux-dotbar' +# continuum autosaves by appending a hook to status-right, so it must load +# after anything that sets status-right (dotbar) or saves silently stop. +set -g @plugin 'tmux-plugins/tmux-continuum' set -g @resurrect-capture-pane-contents 'on' set -g @resurrect-strategy-nvim 'session' diff --git a/zsh/.zshrc b/zsh/.zshrc index c1ba9a8..340109d 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -36,9 +36,11 @@ export CLAUDE_CODE_NO_FLICKER=1 # ---- aliases / wrappers ---- # Attach to or create the 'main' session when invoked bare; pass through otherwise. +# -D detaches any other client first: with window-size latest, a stale smaller +# client (old tab/split) would otherwise pin windows to its size. tmux() { if (( $# == 0 )); then - command tmux new-session -A -s main + command tmux new-session -A -D -s main else command tmux "$@" fi