Updating path for cloned repo
This commit is contained in:
@@ -41,19 +41,19 @@ Clone this repo locally and symlink `CLAUDE.md` and `preferences/` into `~/.clau
|
||||
**Linux (one-time setup per machine):**
|
||||
|
||||
```bash
|
||||
git clone https://git.chns.tech/CHNS/AI ~/repos/AI
|
||||
ln -sf ~/repos/AI/CLAUDE.md ~/.claude/CLAUDE.md
|
||||
ln -sf ~/repos/AI/preferences ~/.claude/preferences
|
||||
git clone https://git.chns.tech/CHNS/AI ~/AI
|
||||
ln -sf ~/AI/CLAUDE.md ~/.claude/CLAUDE.md
|
||||
ln -sf ~/AI/preferences ~/.claude/preferences
|
||||
```
|
||||
|
||||
**Windows (one-time setup — requires Developer Mode or run PowerShell as Administrator):**
|
||||
|
||||
```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\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\preferences" -Target "C:\repos\AI\preferences"
|
||||
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:\AI\preferences"
|
||||
```
|
||||
|
||||
After symlinking, configure hooks from `preferences/hooks-setup.md` — the auto-pull hook will keep preferences current automatically.
|
||||
|
||||
@@ -67,7 +67,7 @@ Add this to `~/.claude/settings.json` (merge with any existing content). Command
|
||||
"hooks": [
|
||||
{
|
||||
"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,
|
||||
"statusMessage": "Syncing preferences..."
|
||||
}
|
||||
@@ -100,7 +100,7 @@ Add this to `~/.claude/settings.json` (merge with any existing content). Command
|
||||
"hooks": [
|
||||
{
|
||||
"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,
|
||||
"statusMessage": "Syncing preferences..."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user