Files
claude-config/install.sh
T
slaguru666andClaude Sonnet 4.6 8addb676d0 fix: sync live config, fix memory path, add sync.sh
- CLAUDE.md: replace old stub with current full version
- settings.json: update to current live version
- memory/: replace stale files with current live memory
- install.sh: fix memory path (-Users-$USER not -Users-$USER-Git), use glob copy
- sync.sh: new script — one command to pull live state, commit, push
- README: rewrite to reflect actual structure and workflows

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-04 23:07:51 +01:00

34 lines
1.0 KiB
Bash
Executable File

#!/usr/bin/env bash
# Installs Claude config files to ~/.claude/
# Usage: ./install.sh
# Run this on any machine after cloning the repo.
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
CLAUDE_DIR="$HOME/.claude"
USERNAME=$(whoami)
MEMORY_DIR="$CLAUDE_DIR/projects/-Users-${USERNAME}/memory"
echo "Installing Claude config for user: $USERNAME"
# CLAUDE.md
cp "$SCRIPT_DIR/CLAUDE.md" "$CLAUDE_DIR/CLAUDE.md"
echo " Installed: ~/.claude/CLAUDE.md"
# settings.json — back up if it already exists
if [ -f "$CLAUDE_DIR/settings.json" ]; then
cp "$CLAUDE_DIR/settings.json" "$CLAUDE_DIR/settings.json.bak"
echo " Backed up: ~/.claude/settings.json -> settings.json.bak"
fi
cp "$SCRIPT_DIR/settings.json" "$CLAUDE_DIR/settings.json"
echo " Installed: ~/.claude/settings.json"
# Memory files — copy all .md files from memory/
mkdir -p "$MEMORY_DIR"
cp "$SCRIPT_DIR/memory/"*.md "$MEMORY_DIR/"
echo " Installed: memory files -> $MEMORY_DIR"
echo ""
echo "Done. Restart Claude Code for settings to take effect."