mirror of
https://github.com/luongnv89/claude-howto.git
synced 2026-06-01 10:31:33 +02:00
- 10-cli/README.md: policy → local → project → user (was project → local → policy → user) - 02-memory/README.md: reorder table levels 3/4/5 to local → project → user - 02-memory/README.md: update note text to match corrected order
This commit is contained in:
+3
-3
@@ -298,9 +298,9 @@ Claude Code settings (including `autoMemoryDirectory`, `claudeMdExcludes`, and o
|
||||
|-------|----------|-------|
|
||||
| 1 (Highest) | Managed policy (system-level) | Organization-wide enforcement |
|
||||
| 2 | `managed-settings.d/` (v2.1.83+) | Modular policy drop-ins, merged alphabetically |
|
||||
| 3 | `~/.claude/settings.json` | User preferences |
|
||||
| 3 | `.claude/settings.local.json` | Local overrides (git-ignored) |
|
||||
| 4 | `.claude/settings.json` | Project-level (committed to git) |
|
||||
| 5 (Lowest) | `.claude/settings.local.json` | Local overrides (git-ignored) |
|
||||
| 5 (Lowest) | `~/.claude/settings.json` | User preferences |
|
||||
|
||||
**Platform-specific configuration (v2.1.51+):**
|
||||
|
||||
@@ -310,7 +310,7 @@ Settings can also be configured via:
|
||||
|
||||
These platform-native mechanisms are read alongside JSON settings files and follow the same precedence rules.
|
||||
|
||||
> **Note (v2.1.119)**: `/config` changes now persist to `~/.claude/settings.json`. Values written via `/config` participate in the normal project/local/policy precedence chain described above — they are no longer session-only. Use `/config` for interactive edits and edit `settings.json` files directly for scripted or managed configuration.
|
||||
> **Note (v2.1.119)**: `/config` changes now persist to `~/.claude/settings.json`. Values written via `/config` participate in the normal policy/local/project precedence chain described above — they are no longer session-only. Use `/config` for interactive edits and edit `settings.json` files directly for scripted or managed configuration.
|
||||
|
||||
### Retention and Cleanup Settings
|
||||
|
||||
|
||||
+1
-1
@@ -252,7 +252,7 @@ claude -p --json-schema '{"type":"object","properties":{"bugs":{"type":"array"}}
|
||||
| `--add-dir` | Add additional working directories | `claude --add-dir ../apps ../lib` |
|
||||
| `--setting-sources` | Comma-separated setting sources | `claude --setting-sources user,project` |
|
||||
|
||||
> **`/config` persistence (v2.1.119)**: Changes made interactively via the `/config` command are now written to `~/.claude/settings.json` and participate in the normal precedence chain (project → local → policy → user). Before v2.1.119, some `/config` changes were session-only. See [Memory & Settings](../02-memory/README.md) for the full precedence order.
|
||||
> **`/config` persistence (v2.1.119)**: Changes made interactively via the `/config` command are now written to `~/.claude/settings.json` and participate in the normal precedence chain (policy → local → project → user). Before v2.1.119, some `/config` changes were session-only. See [Memory & Settings](../02-memory/README.md) for the full precedence order.
|
||||
| `--settings` | Load settings from file or JSON | `claude --settings ./settings.json` |
|
||||
| `--plugin-dir` | Load plugins from directory (repeatable) | `claude --plugin-dir ./my-plugin` |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user