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

Ask the user whether they want Nim added to PATH #28

Open
dom96 opened this issue Aug 11, 2017 · 8 comments
Open

Ask the user whether they want Nim added to PATH #28

dom96 opened this issue Aug 11, 2017 · 8 comments

Comments

@dom96
Copy link
Owner

@dom96 dom96 commented Aug 11, 2017

Also perform the modification of PATH automatically on all platforms.

@dom96 dom96 added the Feature label Aug 11, 2017
@genotrance

This comment has been minimized.

Copy link
Collaborator

@genotrance genotrance commented Mar 19, 2018

Doesn't choosenim copy the binaries to the ~/.nimble/bin directory for nim? Does that directory get added to the path automatically by nimble or does user have to manually do that?

I'm not sure what the requirement is so some clarity would help here.

@dom96

This comment has been minimized.

Copy link
Owner Author

@dom96 dom96 commented Mar 19, 2018

Doesn't choosenim copy the binaries to the ~/.nimble/bin directory for nim?

No, it creates a "proxy exe" in that directory.

Does that directory get added to the path automatically by nimble or does user have to manually do that?

Manually.

This issue is about adding functionality to choosenim to add ~/.nimble/bin to the PATH.

@genotrance

This comment has been minimized.

Copy link
Collaborator

@genotrance genotrance commented Mar 19, 2018

Okay, makes sense. I presume we want this functionality in nimble as well - when a package with a bin is installed, it should ask and add to path accordingly.

Should it add to user or global path?

@genotrance

This comment has been minimized.

Copy link
Collaborator

@genotrance genotrance commented May 21, 2018

I presume we want to add to path for Windows only, not for other OS?

@dom96

This comment has been minimized.

Copy link
Owner Author

@dom96 dom96 commented May 21, 2018

All OS' would be nice. Windows is enough for now though.

@genotrance

This comment has been minimized.

Copy link
Collaborator

@genotrance genotrance commented May 22, 2018

Is there a consistent way on Linux and Mac to do this? I can add to .profile but unsure if it's the right way.

@dom96

This comment has been minimized.

Copy link
Owner Author

@dom96 dom96 commented May 22, 2018

Don't know. Please research how others do it if you're interested in implementing it.

@sschwarzer

This comment has been minimized.

Copy link

@sschwarzer sschwarzer commented Jan 12, 2020

Is there a consistent way on Linux and Mac to do this? I can add to .profile but unsure if it's the right way.

If the user is asked for the PATH edition on Posix systems, I think they should be told where choosenim will add the PATH change before agreeing.

genotrance added a commit to genotrance/choosenim that referenced this issue Jan 14, 2020
genotrance added a commit to genotrance/choosenim that referenced this issue Jan 14, 2020
genotrance added a commit to genotrance/choosenim that referenced this issue Jan 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.