mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-30 05:29:53 +00:00
feat: implement home directory expansion for permission patterns using ~ and $HOME prefixes. (#9813)
This commit is contained in:
parent
d9f0287d74
commit
2a370f8038
3 changed files with 58 additions and 1 deletions
|
|
@ -78,6 +78,14 @@ Permission patterns use simple wildcard matching:
|
|||
- `?` matches exactly one character
|
||||
- All other characters match literally
|
||||
|
||||
### Home Directory Expansion
|
||||
|
||||
You can use `~` or `$HOME` at the start of a pattern to reference your home directory. This is particularly useful for `external_directory` rules.
|
||||
|
||||
- `~/projects/*` -> `/Users/username/projects/*`
|
||||
- `$HOME/projects/*` -> `/Users/username/projects/*`
|
||||
- `~` -> `/Users/username`
|
||||
|
||||
---
|
||||
|
||||
## Available Permissions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue