Updating path for cloned repo

This commit is contained in:
2026-05-07 23:43:48 -07:00
parent b36bae214c
commit 469663dc3e
2 changed files with 8 additions and 8 deletions
+6 -6
View File
@@ -41,19 +41,19 @@ Clone this repo locally and symlink `CLAUDE.md` and `preferences/` into `~/.clau
**Linux (one-time setup per machine):** **Linux (one-time setup per machine):**
```bash ```bash
git clone https://git.chns.tech/CHNS/AI ~/repos/AI git clone https://git.chns.tech/CHNS/AI ~/AI
ln -sf ~/repos/AI/CLAUDE.md ~/.claude/CLAUDE.md ln -sf ~/AI/CLAUDE.md ~/.claude/CLAUDE.md
ln -sf ~/repos/AI/preferences ~/.claude/preferences ln -sf ~/AI/preferences ~/.claude/preferences
``` ```
**Windows (one-time setup — requires Developer Mode or run PowerShell as Administrator):** **Windows (one-time setup — requires Developer Mode or run PowerShell as Administrator):**
```powershell ```powershell
git clone https://git.chns.tech/CHNS/AI C:\repos\AI git clone https://git.chns.tech/CHNS/AI C:\AI
Remove-Item "$env:USERPROFILE\.claude\CLAUDE.md" -Force -ErrorAction SilentlyContinue Remove-Item "$env:USERPROFILE\.claude\CLAUDE.md" -Force -ErrorAction SilentlyContinue
Remove-Item "$env:USERPROFILE\.claude\preferences" -Recurse -Force -ErrorAction SilentlyContinue Remove-Item "$env:USERPROFILE\.claude\preferences" -Recurse -Force -ErrorAction SilentlyContinue
New-Item -ItemType SymbolicLink -Path "$env:USERPROFILE\.claude\CLAUDE.md" -Target "C:\repos\AI\CLAUDE.md" New-Item -ItemType SymbolicLink -Path "$env:USERPROFILE\.claude\CLAUDE.md" -Target "C:\AI\CLAUDE.md"
New-Item -ItemType SymbolicLink -Path "$env:USERPROFILE\.claude\preferences" -Target "C:\repos\AI\preferences" New-Item -ItemType SymbolicLink -Path "$env:USERPROFILE\.claude\preferences" -Target "C:\AI\preferences"
``` ```
After symlinking, configure hooks from `preferences/hooks-setup.md` — the auto-pull hook will keep preferences current automatically. After symlinking, configure hooks from `preferences/hooks-setup.md` — the auto-pull hook will keep preferences current automatically.
+2 -2
View File
@@ -67,7 +67,7 @@ Add this to `~/.claude/settings.json` (merge with any existing content). Command
"hooks": [ "hooks": [
{ {
"type": "command", "type": "command",
"command": "git -C \"$HOME/repos/AI\" pull --quiet --ff-only 2>/dev/null; true", "command": "git -C \"$HOME/AI\" pull --quiet --ff-only 2>/dev/null; true",
"async": true, "async": true,
"statusMessage": "Syncing preferences..." "statusMessage": "Syncing preferences..."
} }
@@ -100,7 +100,7 @@ Add this to `~/.claude/settings.json` (merge with any existing content). Command
"hooks": [ "hooks": [
{ {
"type": "command", "type": "command",
"command": "powershell -NonInteractive -Command \"git -C C:\\repos\\AI pull --quiet --ff-only 2>$null\"", "command": "powershell -NonInteractive -Command \"git -C C:\\AI pull --quiet --ff-only 2>$null\"",
"async": true, "async": true,
"statusMessage": "Syncing preferences..." "statusMessage": "Syncing preferences..."
} }