Everywhere you can read how to replace environment variables. But I want to insert a new path at the beginning of my $PATH variable. What's the simplest way to do this using sh?
Just assign it a new value that includes the old:
PATH=/new/path:${PATH}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With