Installer does not refresh PATH or prompt for source after successful installation #9219

Open
opened 2026-02-16 18:11:56 -05:00 by yindo · 2 comments
Owner

Originally created by @omatheusmesmo on GitHub (Feb 12, 2026).

Originally assigned to: @thdxr on GitHub.

Description

After running the installation script on a Linux environment (Orange Pi/Armbian), the opencode command is not immediately available in the current shell session, leading to a "command not found" error. While the script correctly appends the PATH to .bashrc, it doesn't export the PATH to the current process nor explicitly instructs the user to source their configuration file if the command isn't yet in the shell's hash table.

Plugins

None

OpenCode version

1.1.64

Steps to reproduce

  1. Use a Debian Bookworm environment (Orange Pi 5).
  2. Run the official installer: curl -fsSL https://opencode.ai/install | bash
  3. Immediately try to run opencode in the same terminal.
  4. Terminal returns bash: opencode: command not found.
  5. The user must manually run source ~/.bashrc or restart the session to fix it.

Screenshot and/or share link

opi5@homelab:~$ curl -fsSL https://opencode.ai/install | bash

Installing opencode version: 1.1.64
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 100%
Successfully added opencode to $PATH in /home/opi5/.bashrc

                                 ▄
█▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█
█░░█ █░░█ █▀▀▀ █░░█ █░░░ █░░█ █░░█ █▀▀▀
▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀  ▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀


OpenCode includes free models, to start:

cd <project>  # Open directory
opencode      # Run command

For more information visit https://opencode.ai/docs


opi5@homelab:~$ opencode
opencode: command not found
opi5@homelab:~$ c
c: command not found
opi5@homelab:~$ source ~/.bashrc
opi5@homelab:~$ opencode -v
1.1.64

Operating System

Debian Bookworm (Orange Pi 5 build)

Terminal

Standard Bash over SSH

Originally created by @omatheusmesmo on GitHub (Feb 12, 2026). Originally assigned to: @thdxr on GitHub. ### Description After running the installation script on a Linux environment (Orange Pi/Armbian), the opencode command is not immediately available in the current shell session, leading to a "command not found" error. While the script correctly appends the PATH to .bashrc, it doesn't export the PATH to the current process nor explicitly instructs the user to source their configuration file if the command isn't yet in the shell's hash table. ### Plugins None ### OpenCode version 1.1.64 ### Steps to reproduce 1. Use a Debian Bookworm environment (Orange Pi 5). 2. Run the official installer: curl -fsSL https://opencode.ai/install | bash 3. Immediately try to run opencode in the same terminal. 4. Terminal returns bash: opencode: command not found. 5. The user must manually run source ~/.bashrc or restart the session to fix it. ### Screenshot and/or share link ```sh opi5@homelab:~$ curl -fsSL https://opencode.ai/install | bash Installing opencode version: 1.1.64 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 100% Successfully added opencode to $PATH in /home/opi5/.bashrc   ▄ █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ █░░█ █░░█ █▀▀▀ █░░█ █░░░ █░░█ █░░█ █▀▀▀ ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀ ▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ OpenCode includes free models, to start: cd <project> # Open directory opencode # Run command For more information visit https://opencode.ai/docs opi5@homelab:~$ opencode opencode: command not found opi5@homelab:~$ c c: command not found opi5@homelab:~$ source ~/.bashrc opi5@homelab:~$ opencode -v 1.1.64 ``` ### Operating System Debian Bookworm (Orange Pi 5 build) ### Terminal Standard Bash over SSH
yindo added the bug label 2026-02-16 18:11:56 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 12, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #11319: CLI install on ubuntu 24 fails - Same root cause where installer updates .bashrc but command isn't available in current session
  • #13390: WSL CLI install not working outside of VScode terminals - Related issue with PATH not being reloaded after installation

Both issues describe the same underlying problem: the installer needs to either reload the shell environment or prompt the user to do so.

@github-actions[bot] commented on GitHub (Feb 12, 2026): This issue might be a duplicate of existing issues. Please check: - #11319: CLI install on ubuntu 24 fails - Same root cause where installer updates .bashrc but command isn't available in current session - #13390: WSL CLI install not working outside of VScode terminals - Related issue with PATH not being reloaded after installation Both issues describe the same underlying problem: the installer needs to either reload the shell environment or prompt the user to do so.
Author
Owner

@omatheusmesmo commented on GitHub (Feb 12, 2026):

Hello,

I have submitted a pull request to resolve this issue. Please review it at your convenience and let me know if any modifications are required.

Thank you for your consideration.

@omatheusmesmo commented on GitHub (Feb 12, 2026): Hello, I have submitted a pull request to resolve this issue. Please review it at your convenience and let me know if any modifications are required. Thank you for your consideration.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9219