Closed nc7s closed 3 years ago
Do it only if interactive:
if status is-interactive
nvm use x.z.y
end
If that doesn't help, instead of using nvm use
in your config.fish, try setting nvm_default_version
(once) in the CLI.
set --universal nvm_default_version x.y.z
set -xU nvm_default_version x.y.z
solved it, and wouldn't say "Now using" on every new session startup. Thank you 😄
Hi,
It's a little annoying that when I have
nvm use
in myconfig.fish
andscp
from somewhere else,nvm use
would say "Now using Node vx.y.z" thenscp
just exits, no transfer happens. Back to normal whennvm use
is removed. But I want to have Node ready on remote sessions.