diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2020-12-22 11:54:48 -0500 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2020-12-22 12:03:16 -0500 |
| commit | 7f06bbc3769ce67fe9d3ab5160e0135dc634a842 (patch) | |
| tree | 9f9fae4a233ea3eca4d66c118f760d9d850dd4e3 /README.md | |
| parent | e282eced4445b79d3e0a7bd86f8b156fe672eb60 (diff) | |
Add support for --no-export options.
This is intended for use in shell rc files, where variables need to be
set for the current shell but not exported.
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -12,6 +12,12 @@ I've replaced all of that with a single line: eval "$(envdir-helper)" +This program also supports setting non-exported shell variables, using the +`--no-export` flag. This is useful for prompts and other shell configuration +that should not be propagated through to subshells and other programs. This behaviour is the default if the env directory's name ends in `rc`: + + eval "$(envdir-helper .envdir.rc)" + ## Security As alluded to above, one of the use cases for this is env-specific tokens. These |
