feat: implement home directory expansion for permission patterns using ~ and $HOME prefixes. (#9813)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user