eval-only option

This commit is contained in:
randogoth 2026-01-01 20:45:46 +02:00
parent 3969251220
commit fd7ff14ac6
3 changed files with 26 additions and 18 deletions

View file

@ -124,9 +124,11 @@ Apply environment variables defined in `[variables]` and propagate them to syste
```bash
curator env
# then, to update this shell:
eval "$(curator env --eval)"
eval "$(curator env --eval-only)"
```
Use `curator env --eval-only` in shell init files if you want each shell to export the current `[variables]` values without touching `environment.d` or systemd/DBus.
## Configuration
### inventory.toml
@ -243,7 +245,7 @@ PAGER = "less -R"
Notes:
- Values are imported into the user systemd and DBus environments during `curator switch` or `curator env`.
- To update a currently running shell, run `eval "$(curator env --eval)"` after applying.
- To update a currently running shell, run `eval "$(curator env --eval-only)"` after applying.
- Later shell init files (e.g., `.bashrc`, `.zshrc`) can still override these values.
#### `[dotfiles]`