eval-only option
This commit is contained in:
parent
3969251220
commit
fd7ff14ac6
3 changed files with 26 additions and 18 deletions
|
|
@ -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]`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue