-
Notifications
You must be signed in to change notification settings - Fork 29
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
Return the current environment of the shell #77
Comments
What would be the use-case here? There is Though, I guess there's no harm having this API in... |
@matklad The use case for me is NixOS related: for various reasons, I created
As I move towards minimizing usage of bash, I have been finding it very helpful to use Initially, I thought I might just |
Currently, as far as I understand, it is not possible to return the environment of a shell: https://docs.rs/xshell/latest/src/xshell/lib.rs.html#383
Ideally, we should be able to return all the environment variables that a shell is aware of as a std::env::Vars or similar object?
(I can submit a PR for this.)
The text was updated successfully, but these errors were encountered: