From 7f06bbc3769ce67fe9d3ab5160e0135dc634a842 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Tue, 22 Dec 2020 11:54:48 -0500 Subject: 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. --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'README.md') 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 -- cgit v1.2.3