swiftly
installer change default bin to /usr/local/bin
#49
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Using the changes in this PR, swiftly and its installer will default to
/usr/local/bin
instead of$HOME/.local/bin
.I was initially going to do this, but ended up doing this after some more research.
I personally checked 6 different OS instances, (my MacBook + Ubuntu 22.04 & 18.04 & amazonlinux on Docker + Ubuntu 22.04 on 2 vps, one with root and one with a default user). None of them actually had
$HOME/.local/bin
in their PATH and all of them had/usr/local/bin
(Not even the 2 non-root-user OS: my MacBook and a vps).I did find this Github Issue that mentions there should be a
$HOME/.local/bin
, but I just don't see it. Overall i'm a little bit confused of the PATH situation, but I think/usr/local/bin
should solve the problem anyway.The bash docs says this about PATH:
This, plus my own observations, makes me think we can put some trust in
/usr/local/bin
.Solves #48.