raspberrypi / pico-setup

92 stars 42 forks source link

Write env-vars to ~/.profile instead of ~/.bashrc #14

Open lurch opened 3 years ago

lurch commented 3 years ago

Fixes #13 and #12

There's also no need for source since we've already done export!

lurch commented 3 years ago

Does this work better for you now @bablokb ?

bablokb commented 3 years ago

yes, this fixes #12

aallan commented 3 years ago

This PR is superseded by #20?

lurch commented 3 years ago

There's also no need for source since we've already done export!

And I've just remembered that this only sets the variables in the shell-instance in which the script is running, and they don't propagate back up to the parent shell that actually invoked the script :wink: (a subshell can't modify the environment of its parent shell)