Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lurch
Copy link
Contributor

@lurch lurch commented Feb 26, 2021

Fixes #13 and #12

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

@lurch
Copy link
Contributor Author

lurch commented Mar 12, 2021

Does this work better for you now @bablokb ?

@bablokb
Copy link

bablokb commented Mar 12, 2021

yes, this fixes #12

@aallan
Copy link

aallan commented Apr 6, 2021

This PR is superseded by #20?

@lurch
Copy link
Contributor Author

lurch commented Apr 7, 2021

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
3 participants