codex: support XDG Base Directory specification
- Configuration file is now placed in XDG_CONFIG_HOME/codex/config.toml by default for versions >=0.2.0 when preferXdgDirectories is enabled. - Falls back to ~/.codex/config.yaml for versions <0.2.0 and to ~/.codex/config.toml when preferXdgDirectories is disabled - Sets CODEX_HOME environment variable to $XDG_CONFIG_HOME/codex when using XDG directories. - Updated tests to verify XDG directory behavior and environment variable presence.
This commit is contained in:
parent
d8a475e179
commit
faa5b42eca
6 changed files with 78 additions and 12 deletions
|
|
@ -6,5 +6,6 @@
|
|||
nmt.script = ''
|
||||
assertPathNotExists home-files/.codex/config.toml
|
||||
assertPathNotExists home-files/.codex/config.yaml
|
||||
assertFileNotRegex home-path/etc/profile.d/hm-session-vars.sh 'CODEX_HOME'
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue