summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2020-12-22 11:54:48 -0500
committerOwen Jacobson <owen@grimoire.ca>2020-12-22 12:03:16 -0500
commit7f06bbc3769ce67fe9d3ab5160e0135dc634a842 (patch)
tree9f9fae4a233ea3eca4d66c118f760d9d850dd4e3 /README.md
parente282eced4445b79d3e0a7bd86f8b156fe672eb60 (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.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/README.md b/README.md
index 3296195..f5f4439 100644
--- a/README.md
+++ b/README.md
@@ -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