Skip to content

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

Open
lurch wants to merge 2 commits into
raspberrypi:masterfrom
lurch:patch-2
Open

Write env-vars to ~/.profile instead of ~/.bashrc#14
lurch wants to merge 2 commits into
raspberrypi:masterfrom
lurch:patch-2

Conversation

@lurch

@lurch lurch commented Feb 26, 2021

Copy link
Copy Markdown
Contributor

Fixes #13 and #12

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

@lurch

lurch commented Mar 12, 2021

Copy link
Copy Markdown
Contributor Author

Does this work better for you now @bablokb ?

@bablokb

bablokb commented Mar 12, 2021

Copy link
Copy Markdown

yes, this fixes #12

@aallan

aallan commented Apr 6, 2021

Copy link
Copy Markdown

This PR is superseded by #20?

@lurch

lurch commented Apr 7, 2021

Copy link
Copy Markdown
Contributor Author

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 😉 (a subshell can't modify the environment of its parent shell)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Please write environment variable configuration to ~/.pam_environent and ~/.profile, or /etc/profile.d instead of ~/.bashrc

3 participants