MrPicklePinosaur / shrs

The rusty shell toolkit for hackers
https://mrpicklepinosaur.github.io/shrs/
Apache License 2.0
308 stars 25 forks source link

[Feature]: Env should start with some sensible values #388

Open MrPicklePinosaur opened 8 months ago

MrPicklePinosaur commented 8 months ago

What would you like to see added?

If the user doesn't call Env::load explicitly, we literally have no environment variables, which causes issues for things like cd, which uses HOME. Thus, we should implement a Env::default that does it's best to populate some important env vars.

rithikasilva commented 8 months ago

Interested in taking a look at this. What ENVs would we want? I was thinking PATH, HOME, USER, and SHELL. Any suggestions?