Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forward calling environment to wcwc shell #8

Open
brettviren opened this issue Sep 25, 2024 · 0 comments
Open

Forward calling environment to wcwc shell #8

brettviren opened this issue Sep 25, 2024 · 0 comments

Comments

@brettviren
Copy link
Owner

Currently, calling wcwc shell produces a fresh shell environment irrespective of the calling shell environment.

An option should be added, eg wcwc shell --forward to forward the calling shell environment variables. Care is needed how to merge the calling environment and the one produced by wcwc shell. Eg, new PATH entries should be appended but only if not already present.

This option should be off by default to encourage cleanliness.

A WCWC_SHELL_FORWARD environment may be set to provide the value of this option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant