-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
install.sh: prefer placing shellenv
command in rcfile rather than shell profile on Linux
#809
Conversation
;; | ||
*) | ||
shell_profile="${HOME}/.profile" | ||
shell_rcfile="${ENV:-"${HOME}/.profile"}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reference for the ENV
environment variable:
Stack Overflow: Is there an alternative for .bashrc for /bin/sh?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me but will wait for one more @Homebrew/maintainers to agree.
Thanks again @XuehaiPan! |
shellenv
command in rcfile rather than shell profileshellenv
command in rcfile rather than shell profile on Linux
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me, thanks again @XuehaiPan!
Prompt user to add
shellenv
command in theirrcfile
rather than the shell profile. The profile is only sourced by the login shell, while thercfile
is always sourced in an interactive session.Resolves #808.