MrPicklePinosaur / shrs

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

[Feature]: Ergonomic PATH variable #433

Open MrPicklePinosaur opened 6 months ago

MrPicklePinosaur commented 6 months ago

What would you like to see added?

Introduce some helper utilities for interacting with the $PATH environment variable. Traditionally in other shells, we would append to PATH using string formatting, resulting in potential for user error

export PATH="$PATH:some/other_path"

we should expose an interface for us to dynamically add/remove items in path and it will automatically update the corresponding environment variable.