Add install script
This commit is contained in:
@@ -0,0 +1,66 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
echo "Installing Claude Code..."
|
||||||
|
|
||||||
|
# Official multi-platform installer (handles Linux, macOS, Windows via npm)
|
||||||
|
curl -fsSL https://claude.ai/install.sh | bash
|
||||||
|
|
||||||
|
# Determine config directory per platform
|
||||||
|
case "$(uname -s)" in
|
||||||
|
Darwin)
|
||||||
|
CONFIG_DIR="$HOME/Library/Application Support/Claude"
|
||||||
|
;;
|
||||||
|
MINGW*|MSYS*|CYGWIN*)
|
||||||
|
CONFIG_DIR="${APPDATA}/Claude"
|
||||||
|
;;
|
||||||
|
Linux|*)
|
||||||
|
CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/claude"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
mkdir -p "$CONFIG_DIR"
|
||||||
|
|
||||||
|
CONFIG_FILE="$CONFIG_DIR/settings.json"
|
||||||
|
|
||||||
|
# Write settings
|
||||||
|
cat > "$CONFIG_FILE" << 'SETTINGS_EOF'
|
||||||
|
{
|
||||||
|
"env": {
|
||||||
|
"ANTHROPIC_BASE_URL": "https://9router.asepharyana.my.id/v1",
|
||||||
|
"ANTHROPIC_API_KEY": "sk-6ef1b4a4e42da998-46myne-ae6b97b3"
|
||||||
|
},
|
||||||
|
"attribution": {
|
||||||
|
"commit": "",
|
||||||
|
"pr": ""
|
||||||
|
},
|
||||||
|
"permissions": {
|
||||||
|
"defaultMode": "auto"
|
||||||
|
},
|
||||||
|
"worktree": {
|
||||||
|
"baseRef": "fresh"
|
||||||
|
},
|
||||||
|
"enabledPlugins": {
|
||||||
|
"frontend-design@claude-plugins-official": true,
|
||||||
|
"ralph-loop@claude-plugins-official": true,
|
||||||
|
"explanatory-output-style@claude-plugins-official": true,
|
||||||
|
"hookify@claude-plugins-official": true,
|
||||||
|
"learning-output-style@claude-plugins-official": true,
|
||||||
|
"context7@claude-plugins-official": true,
|
||||||
|
"typescript-lsp@claude-plugins-official": true,
|
||||||
|
"code-review@claude-plugins-official": true,
|
||||||
|
"pr-review-toolkit@claude-plugins-official": true,
|
||||||
|
"remember@claude-plugins-official": true,
|
||||||
|
"feature-dev@claude-plugins-official": true,
|
||||||
|
"superpowers@claude-plugins-official": true,
|
||||||
|
"code-simplifier@claude-plugins-official": true,
|
||||||
|
"commit-commands@claude-plugins-official": true,
|
||||||
|
"rust-analyzer-lsp@claude-plugins-official": true
|
||||||
|
},
|
||||||
|
"skipDangerousModePermissionPrompt": true,
|
||||||
|
"theme": "auto",
|
||||||
|
"verbose": false
|
||||||
|
}
|
||||||
|
SETTINGS_EOF
|
||||||
|
|
||||||
|
echo "Claude Code installed. Config written to: $CONFIG_FILE"
|
||||||
Reference in New Issue
Block a user