Skip to content

Wrong installation path #3097

@einarpersson

Description

@einarpersson

The README says

Installation Directory

The install script respects the following priority order for the installation path:

    $OPENCODE_INSTALL_DIR - Custom installation directory
    $XDG_BIN_DIR - XDG Base Directory Specification compliant path
    $HOME/bin - Standard user binary directory (if exists or can be created)
    $HOME/.opencode/bin - Default fallback

But when I run

❯ XDG_BIN_DIR=$HOME/.local/bin curl -fsSL https://opencode.ai/install | bash
Downloading opencode version: 0.14.7 ...
######################################################################## 100.0%
Successfully added opencode to $PATH in /home/einar/.zshenv
❯ cat .zshenv
***REDACTED***
# opencode
export PATH=/home/einar/.opencode/bin:$PATH

❯ which opencode
~/.opencode/bin/opencode

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions