[PR #8511] feat(install): respect ZDOTDIR for zsh config detection #12772

Closed
opened 2026-02-16 18:17:40 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/8511

State: closed
Merged: Yes


What does this PR do?

Per the zsh manual: "If $ZDOTDIR is unset, $HOME is used instead."

How did you verify your code works?

  • I ran the script and it installed correctly, respecting ZDOTDIR.
  • Tested with ZDOTDIR unset, set, and empty - all expand correctly
  • Confirmed users without ZDOTDIR get identical paths as before (no breaking change)
  • Tested file selection loop with temp files - correctly prioritizes ZDOTDIR over HOME
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/8511 **State:** closed **Merged:** Yes --- ### What does this PR do? - Closes #8512 - Respect `ZDOTDIR` environment variable when detecting zsh config files - Falls back to `HOME` when unset, matching zsh's native behavior _Per the zsh manual: "If $ZDOTDIR is unset, $HOME is used instead."_ ### How did you verify your code works? - I ran the script and it installed correctly, respecting ZDOTDIR. - Tested with ZDOTDIR unset, set, and empty - all expand correctly - Confirmed users without ZDOTDIR get identical paths as before (no breaking change) - Tested file selection loop with temp files - correctly prioritizes ZDOTDIR over HOME
yindo added the pull-request label 2026-02-16 18:17:40 -05:00
yindo closed this issue 2026-02-16 18:17:40 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12772