Skip to content

fix(chezmoi): unbreak chezmoi apply (tmux backend + completions set -e)#195

Merged
laurigates merged 1 commit into
mainfrom
fix/tmux-aqua-and-completions-set-e
May 8, 2026
Merged

fix(chezmoi): unbreak chezmoi apply (tmux backend + completions set -e)#195
laurigates merged 1 commit into
mainfrom
fix/tmux-aqua-and-completions-set-e

Conversation

@laurigates
Copy link
Copy Markdown
Owner

Summary

Two failures surfaced by chezmoi apply in this morning's run:

  • tmux: mise's default backend resolves to asdf:mise-plugins/mise-tmux, which builds from source and was failing on 3.6a (asdf-tmux: An error occurred while installing tmux 3.6a). Switched to aqua:tmux/tmux-builds for prebuilt binaries with checksum verification — matches the documented backend priority (aqua > asdf).
  • run_onchange_02-generate-completions.sh.tmpl: script runs under set -euo pipefail, and ((skipped++)) exits 1 when skipped is 0 (bash arithmetic returns nonzero when the resulting value is 0). The very first not-found tool (aider) killed the whole completions pass. Swapped both ((generated++)) and ((skipped++)) for var=$((var + 1)) (assignment is always exit 0).

Test plan

  • chezmoi diff ~/.config/mise/config.toml shows the expected single-line backend swap
  • chezmoi apply completes both 01-update-packages.sh (tmux installs cleanly via aqua) and 02-generate-completions.sh (no early exit on missing tools)
  • tmux -V reports 3.6a and the binary lives under ~/.local/share/mise/installs/aqua-tmux-tmux-builds/
  • ~/.zfunc/ repopulates for all installed completion tools (not just up to the first missing one)

🤖 Generated with Claude Code

Two failures surfaced by `chezmoi apply`:

- mise's default tmux backend is `asdf:mise-plugins/mise-tmux`, which
  builds from source and was failing on tmux 3.6a. Switch to
  `aqua:tmux/tmux-builds` for prebuilt binaries with checksum
  verification, matching the documented backend priority (aqua > asdf).
- `run_onchange_02-generate-completions.sh.tmpl` runs under
  `set -euo pipefail`. `((skipped++))` returns exit 1 when `skipped`
  is 0 (bash arithmetic returns nonzero when result is 0), so the
  first not-found tool killed the whole script. Replace with
  `skipped=$((skipped + 1))` (assignment is always exit 0).
@laurigates laurigates merged commit c420c9d into main May 8, 2026
7 checks passed
@laurigates laurigates deleted the fix/tmux-aqua-and-completions-set-e branch May 8, 2026 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant