Skip to content

Commit e002ab8

Browse files
feat: include opencode in AI tools installation
Install opencode from official Arch repositories in the AI tools setup flow and include it in optional AI dependency checks so installation and validation stay aligned. Made-with: Cursor
1 parent a8cad59 commit e002ab8

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

home/.chezmoiscripts/linux/run_onchange_before_install-ai-tools.sh.tmpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ set -euo pipefail
77

88
sudo pacman -S --noconfirm --needed \
99
nodejs \
10-
npm
10+
npm \
11+
opencode
1112

1213
yay -S --noconfirm --needed \
1314
visual-studio-code-bin \

home/dot_local/bin/executable_dots-dependencies

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ declare -A AI_DEPS=(
6262
["code"]="Visual Studio Code"
6363
["cursor"]="Cursor AI IDE"
6464
["claude"]="Claude Code CLI"
65+
["opencode"]="OpenCode CLI"
6566
["pi"]="Pi coding agent"
6667
)
6768

@@ -147,7 +148,7 @@ install_dependencies() {
147148
if [[ -n ${optional} ]]; then
148149
log_info "Installing optional AI dependencies..."
149150
if command -v pacman >/dev/null 2>&1; then
150-
sudo pacman -S --needed nodejs npm
151+
sudo pacman -S --needed nodejs npm opencode
151152
if command -v yay >/dev/null 2>&1; then
152153
yay -S --noconfirm --needed \
153154
visual-studio-code-bin \

0 commit comments

Comments
 (0)