-
Notifications
You must be signed in to change notification settings - Fork 74
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
Modify path for the current session only #101
Comments
node
only for the current session
node
only for the current sessionnode
for the current session only
node
for the current session only
This has already been discussed in #39. Please see my last comment there. I hope @jorgebucaran will include proposed changes into official version, as this feature has been requested multiple times. |
@yegorius @schrodincat Maybe you folks can help me test @schrodincat's proposal by writing a list of pros and cons for that approach. 🙏 |
In my case I am almost always satisfied with my distro's default package of node (Arch Linux is rolling release distro so I get the latest official version of node in a matter of days), except for the special cases when some project requires an older version. In this case I temporarily switch with |
I need to different node versions in different shells...have older projects that work on node 10 only :-( |
We could check for an @yegorius @andreiborisov @ujwal-setlur @jackwestmoretab @thernstig |
Modify the global |
Of course! Thanks, @andreiborisov! |
@jorgebucaran I definitely agree to modifying Even with that solution (allowing both "local" and "global" versions), I still have a slight problem with But is the idea of automatically doing this by default when finding |
Yes, and that's why we should only touch |
Automatically switching versions when changing PWD should be easy to implement in userland (or perhaps even configurable—let's see), but never a default. |
👋
What's the problem?
node
. Global modification ofPATH
breaks them.fish_user_paths
affects all terminal sessions, therefore, all projects.I want to write a wrapper aroundnode
that will automatically call the appropriatenode
version based on the context (without the need to callnvm
explicitly, mainly for the scripts) and would love to use this package as a dependency.Proposed solution
fish_user_paths
, instead modify globalPATH
variable on the command usage that will affect only the current fish session.Are you willing to review and accept a PR for this?
Related: #93
The text was updated successfully, but these errors were encountered: