Skip to content

Install script doesn't respect $ZDOTDIR for zsh config detection #8512

@samiulsami

Description

@samiulsami

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

Image

Operating System

Arch Linux x86_64

Terminal

Ghostty 1.2.3-arch2

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions