Skip to content

fix(shell): drop home-manager's unused antidote integration - #53

Merged
potsrevennil merged 1 commit into
mainfrom
fix/zsh-drop-hm-antidote
Oct 20, 2026
Merged

potsrevennil merged 1 commit into
mainfrom
fix/zsh-drop-hm-antidote

Conversation

@potsrevennil

Copy link
Copy Markdown
Owner

exec zsh prints antidote: error: bundle argument expected after a home-manager switch or a reboot. programs.zsh.antidote is enabled with no plugins, because the plugins live in zsh_plugins.txt and zshrc bundles them itself with $ANTIDOTE. So the generated .zshrc runs antidote load on an empty bundle file. antidote caches the result in /tmp under a name tied to the generation, and whenever that cache is missing it re-bundles the empty list and prints the error.

This drops the unused integration. envExtra still sets ANTIDOTE, and zshrc doesn't depend on the home-manager block.

  • Verify: build the home config, then start an interactive zsh from the generated .zshrc/.zshenv in a scratch ZDOTDIR. No antidote error, and the antidote function, oh-my-zsh aliases, p10k, autosuggestions and the git wrapper all load. The generated .zshrc has no antidote lines.
    nix build --no-link --print-out-paths .#homeConfigurations.thing-hanlim.activationPackage
  • Out of scope: moving the plugin list into programs.zsh.antidote.plugins. That's more idiomatic, but zsh_plugins.zsh is a committed static bundle with macOS cache paths, so it's a bigger change.

🤖 Generated with Claude Code

programs.zsh.antidote was enabled with no plugins: the plugins live in
zsh_plugins.txt, which zshrc bundles itself with $ANTIDOTE. The
generated .zshrc still ran `antidote load` on an empty bundle file, and
whenever its static cache in /tmp was missing (first shell after each
switch, or after a reboot) antidote printed "bundle argument expected".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@potsrevennil
potsrevennil marked this pull request as ready for review October 20, 2026 06:47
@potsrevennil
potsrevennil merged commit 43abf6f into main Oct 20, 2026
7 checks passed
@potsrevennil
potsrevennil deleted the fix/zsh-drop-hm-antidote branch October 20, 2026 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant