mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-11 22:10:09 +01:00
doc: update directories
This commit is contained in:
parent
284b807b9e
commit
49f54bb03f
1 changed files with 7 additions and 1 deletions
8
rules.md
8
rules.md
|
|
@ -7,7 +7,13 @@ For compile-time rules, if only rules are changed, cargo won't recompile the pro
|
|||
touch src/rules.rs && cargo build
|
||||
```
|
||||
|
||||
Runtime rules should be placed under `$XDG_CONFIG_HOME/pay-respects/rules/`, for example `$HOME/.config/pay-respects/rules/cargo.toml`. The name of the runtime rule **MUST** match the command name.
|
||||
Runtime rules directories are searched, by the order or priority:
|
||||
|
||||
- `XDG_CONFIG_HOME`
|
||||
- `XDG_CONFIG_DIRS`
|
||||
- `XDG_DATA_DIRS`
|
||||
|
||||
The actual rule file should be placed under `pay-respects/rules/`, for example: `~/.config/pay-respects/rules/cargo.toml`. Note that for runtime rules, the name of the file **MUST** match the command name.
|
||||
|
||||
Syntax of a rule file:
|
||||
```toml
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue