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

install.sh should install to ~/.local/bin/ by default #3928

Open
0cjs opened this issue Jul 11, 2019 · 1 comment
Open

install.sh should install to ~/.local/bin/ by default #3928

0cjs opened this issue Jul 11, 2019 · 1 comment

Comments

@0cjs
Copy link
Contributor

0cjs commented Jul 11, 2019

Given that everything opam does is stored in the user's home dir (which is part of the point of it), there's no good reason that the default location for the binary itself should not be in the user's home dir as well, and doing this would avoid needing to sudo.

~/.local/bin/ has long been the standard location for things like this, though it's reasonable to consider backup locations (such as ~/bin/) as well.

Whether a location is reasonable or not could be determined by checking to see if it both exists and is in the path before suggesting it as the default.

@dra27
Copy link
Member

dra27 commented Jul 13, 2021

Related to #3962

@dra27 dra27 added this to To do in Opam 2.2.0 via automation Jul 16, 2021
@dra27 dra27 moved this from To do to Bump to 2.3? in Opam 2.2.0 Jan 13, 2022
@dra27 dra27 added this to To do in Opam 2.3 via automation May 17, 2022
@dra27 dra27 removed this from Bump to 2.3? in Opam 2.2.0 May 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Opam 2.3
  
To do
Development

No branches or pull requests

2 participants