Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -e

REPO="backnotprop/plannotator"
INSTALL_DIR="$HOME/.local/bin"
INSTALL_DIR="${XDG_DATA_HOME:-$HOME/.local}/bin"

case "$(uname -s)" in
Darwin) os="darwin" ;;
Expand Down Expand Up @@ -73,7 +73,8 @@ if ! echo "$PATH" | tr ':' '\n' | grep -qx "$INSTALL_DIR"; then
fi

# Clear any cached OpenCode plugin to force fresh download on next run
rm -rf ~/.cache/opencode/node_modules/@plannotator ~/.bun/install/cache/@plannotator 2>/dev/null
CACHE_DIR="${XDG_CACHE_HOME:-$HOME/.cache}"
rm -rf "$CACHE_DIR/opencode/node_modules/@plannotator" "$HOME/.bun/install/cache/@plannotator" 2>/dev/null || true

# Install /review slash command
CLAUDE_COMMANDS_DIR="$HOME/.claude/commands"
Expand All @@ -97,7 +98,7 @@ COMMAND_EOF
echo "Installed /plannotator-review command to ${CLAUDE_COMMANDS_DIR}/plannotator-review.md"

# Install OpenCode slash command
OPENCODE_COMMANDS_DIR="$HOME/.config/opencode/command"
OPENCODE_COMMANDS_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/opencode/command"
mkdir -p "$OPENCODE_COMMANDS_DIR"

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