docs: simplify bootstrap - overwrite existing ~/.claude files without prompting
This commit is contained in:
19
BOOTSTRAP.md
19
BOOTSTRAP.md
@@ -59,15 +59,11 @@ Check if `~/.claude/CLAUDE.md` already exists:
|
|||||||
ls -la ~/.claude/CLAUDE.md 2>/dev/null && echo "EXISTS" || echo "NOT FOUND"
|
ls -la ~/.claude/CLAUDE.md 2>/dev/null && echo "EXISTS" || echo "NOT FOUND"
|
||||||
```
|
```
|
||||||
|
|
||||||
**If NOT FOUND:** create the symlink:
|
Replace whatever is there — existing `~/.claude/` files are safe to overwrite:
|
||||||
```bash
|
```bash
|
||||||
ln -s /home/artanis/.cog/CLAUDE.md ~/.claude/CLAUDE.md
|
rm -f ~/.claude/CLAUDE.md && ln -s /home/artanis/.cog/CLAUDE.md ~/.claude/CLAUDE.md
|
||||||
```
|
```
|
||||||
|
|
||||||
**If EXISTS and is already a symlink to the right place:** skip.
|
|
||||||
|
|
||||||
**If EXISTS and is a regular file:** warn the user that an existing `~/.claude/CLAUDE.md` is present. Ask if they want it replaced. If yes: `rm ~/.claude/CLAUDE.md && ln -s /home/artanis/.cog/CLAUDE.md ~/.claude/CLAUDE.md`.
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Step 3 — Symlink settings.json globally
|
## Step 3 — Symlink settings.json globally
|
||||||
@@ -80,16 +76,9 @@ Check what's there:
|
|||||||
ls -la ~/.claude/settings.json 2>/dev/null && echo "EXISTS" || echo "NOT FOUND"
|
ls -la ~/.claude/settings.json 2>/dev/null && echo "EXISTS" || echo "NOT FOUND"
|
||||||
```
|
```
|
||||||
|
|
||||||
**If NOT FOUND:** create the symlink:
|
Replace whatever is there — existing `~/.claude/` files are safe to overwrite:
|
||||||
```bash
|
```bash
|
||||||
ln -s /home/artanis/.cog/.claude/settings.json ~/.claude/settings.json
|
rm -f ~/.claude/settings.json && ln -s /home/artanis/.cog/.claude/settings.json ~/.claude/settings.json
|
||||||
```
|
|
||||||
|
|
||||||
**If EXISTS and is already a symlink to the right place:** skip.
|
|
||||||
|
|
||||||
**If EXISTS and is a regular file:** replace it:
|
|
||||||
```bash
|
|
||||||
rm ~/.claude/settings.json && ln -s /home/artanis/.cog/.claude/settings.json ~/.claude/settings.json
|
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
Reference in New Issue
Block a user