pico-setup icon indicating copy to clipboard operation
pico-setup copied to clipboard

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

Open lurch opened this issue 4 years ago • 4 comments

Fixes #13 and #12

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

lurch avatar Feb 26 '21 11:02 lurch

Does this work better for you now @bablokb ?

lurch avatar Mar 12 '21 08:03 lurch

yes, this fixes #12

bablokb avatar Mar 12 '21 08:03 bablokb

This PR is superseded by #20?

aallan avatar Apr 06 '21 09:04 aallan

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)

lurch avatar Apr 07 '21 13:04 lurch