Description
The install script checks $HOME/.zshrc for zsh users, but doesn't respect the ZDOTDIR environment variable.
Per the zsh manual: "If ZDOTDIR is unset, HOME is used instead." Users with ZDOTDIR set expect their config files to be in $ZDOTDIR, not $HOME.
Plugins
N/A
OpenCode version
v1.1.20
Steps to reproduce
With ZDOTDIR set, Run
curl -fsSL https://opencode.ai/install | bash
Observe that the path has been added to $HOME/.zshenv or $XDG_CONFIG_HOME/.zshenv
Screenshot and/or share link
Operating System
Arch Linux x86_64
Terminal
Ghostty 1.2.3-arch2