-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
nvm alias default isn't respected upon new tmux window/pane #3537
Comments
So, to clarify, the issue is that a new shell isn't using the default? what is |
Yup! Exactly!
lol, whoops! Didn't mean to copy that. That's a annotation in Vim, from ALE doing a lint via Shellcheck. It can't find that file because it's not in the working directory that I opened Vim from. 😅 |
so, it's worth noting that termux uses what does |
Yea, that's totally fair. I'm not using termux, though. Just tmux native (vanilla?).
|
ah, sorry, i didn't realize those weren't the same thing :-) presumably The only thing I can think of is that perhaps your tmux shell isn't sourcing the same profile file as your normal one - if you comment out the normal one's 3 sourcing lines, and open a tmux shell, is nvm still available? |
All good!
Yea, that's what I thought too! 😃
Woah, weird, you're onto something! Commenting out those lines results in |
Ok, going down a rabbit-hole here, and it looks like Tmux has special handling of the PATH variable that I need to understand to not think that this is
That being said, once I've never seen a runtime version tool behave like that. |
tmux may indeed be doing something unique though which could cause a problem, though. |
Operating system and version:
Ubuntu 22.04.5 LTS; running via WSL1; on Windows 11 24H2 (OS Build 26100.3194)
nvm debug
output:nvm ls
output:How did you install
nvm
?Install script in README:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
What steps did you perform?
nvm alias default lts/*
Example:
(I included
date
s so that it's obvious to tell the order of operations)What happened?
The Node version set in the new bash shell wasn't the default as previously set for the new Tmux pane/window.
It works when opening a completely new terminal session, but not when opening a new pane/window. This isn't how any of my other runtime managers work, currently.
What did you expect to happen?
That the new default version would be respected upon new shell sessions in new Tmux panes/windows.
Is there anything in any of your profile files that modifies the
PATH
?Nothing that touches Node or NVM, other than the included config as part of the install:
The text was updated successfully, but these errors were encountered: