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

Only prepend /usr/local/bin to $PATH if its not already there. #64

Merged
merged 2 commits into from Mar 29, 2023

Conversation

emirkmo
Copy link
Contributor

@emirkmo emirkmo commented Mar 27, 2023

During install, only prepend /usr/local/bin to $PATH if its not already in the $PATH.

Problem:

As many commons scripts already add /usr/local/bin it to path, we do not want to overwrite these, especially since it may cause PATH conflicts.

For example brew or conda might have preferences for this not being the first entry, but might already add it. So do not overwrite the path with such a destructive choice if we can already find /usr/local/bin in Path. Only add it if we do not find it.

As many commons scripts already add it to path, we do not want to overwrite these.

For example brew or conda might have preferences for this not being the first entry, but might already add it. So do not overwrite the path with such a destructive choice if we can already find /usr/local/bin in Path
install.sh Outdated Show resolved Hide resolved
@0xacx 0xacx merged commit ea41590 into 0xacx:main Mar 29, 2023
@0xacx
Copy link
Owner

0xacx commented Mar 29, 2023

@emirkmo Thank you for this PR! 🙏

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.

None yet

2 participants