Skip to content

Commit 1b1cefb

Browse files
lfox91backnotprop
andauthored
Fix directory name for OpenCode commands (#736)
* Fix directory name for OpenCode commands https://opencode.ai/docs/commands/#:~:text=Create%20markdown%20files%20in%20the%20commands/%20directory%20to%20define%20custom%20commands. I believe an s is missing from the OPENCODE_COMMANDS_DIR path * fix(install): apply same command→commands fix to PowerShell script --------- Co-authored-by: Michael Ramos <mdramos8@gmail.com>
1 parent 807cc5f commit 1b1cefb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/install.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ Address the annotation feedback above. The user has reviewed your last message a
470470
Write-Host "Installed /plannotator-last command to $claudeCommandsDir\plannotator-last.md"
471471

472472
# Install OpenCode slash command
473-
$opencodeCommandsDir = "$env:USERPROFILE\.config\opencode\command"
473+
$opencodeCommandsDir = "$env:USERPROFILE\.config\opencode\commands"
474474
New-Item -ItemType Directory -Force -Path $opencodeCommandsDir | Out-Null
475475

476476
@"

scripts/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ COMMAND_EOF
694694
echo "Installed /plannotator-last command to ${CLAUDE_COMMANDS_DIR}/plannotator-last.md"
695695

696696
# Install OpenCode slash command
697-
OPENCODE_COMMANDS_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/opencode/command"
697+
OPENCODE_COMMANDS_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/opencode/commands"
698698
mkdir -p "$OPENCODE_COMMANDS_DIR"
699699

700700
cat > "$OPENCODE_COMMANDS_DIR/plannotator-review.md" << 'COMMAND_EOF'

0 commit comments

Comments
 (0)