1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

opencode: change tilde (~) to XDG_CONFIG_DIR for command and agent paths

Replace the use of `~` in the documentation for the command and agent
settings with the `XDG_CONFIG_DIR` environment variable to avoid
ambiguity about the config directory. Also switch to the
`{file}` path macro so paths render correctly in the docs and tooling.
This commit is contained in:
Thierry Delafontaine 2025-10-18 10:16:16 +02:00 committed by Austin Horstman
parent 3fbc879021
commit 99977131d3

View file

@ -87,7 +87,7 @@ in
The attribute name becomes the command filename, and the value is either:
- Inline content as a string
- A path to a file containing the command content
Commands are stored in ~/.config/opencode/command/ directory.
Commands are stored in {file}`$XDG_CONFIG_HOME/.config/opencode/command/` directory.
'';
example = lib.literalExpression ''
{
@ -116,7 +116,7 @@ in
The attribute name becomes the agent filename, and the value is either:
- Inline content as a string
- A path to a file containing the agent content
Agents are stored in ~/.config/opencode/agent/ directory.
Agents are stored in {file}`$XDG_CONFIG_HOME/.config/opencode/agent/` directory.
'';
example = lib.literalExpression ''
{