nvm.fish icon indicating copy to clipboard operation
nvm.fish copied to clipboard

add `nvm alias default` command

Open scarf005 opened this issue 1 year ago • 6 comments

$ tldr nvm

- Set the default Node.js version:
    nvm alias default node_version

$  nvm alias default 23
nvm: Unknown command or option: "alias" (see nvm -h for usage)

it'd be good to have feature parity with nvm.

scarf005 avatar Nov 26 '24 02:11 scarf005

Just ran into this also, would be useful to have.

InTheCloudDan avatar Nov 28 '24 16:11 InTheCloudDan

I also ran into this, installing node only via nvm on a new installed machine, rather than adding nvm after installing node.js in a "traditional" way :D

Would be awesome to have this feature in nvm.fish 🚀

cngJo avatar Dec 03 '24 17:12 cngJo

+1

Maelstromeous avatar Jan 17 '25 21:01 Maelstromeous

+1

treedots-kavan avatar Apr 22 '25 02:04 treedots-kavan

https://github.com/jorgebucaran/nvm.fish#nvm_default_version with these there's no need for nvm alias default.

Look here: https://github.com/jorgebucaran/nvm.fish/issues/241#issuecomment-2733129862

aasutossh avatar May 21 '25 03:05 aasutossh

jorgebucaran/nvm.fish#nvm_default_version with these there's no need for nvm alias default.

Look here: #241 (comment)

then nvm alias default could run set --universal nvm_default_version

scarf005 avatar May 21 '25 03:05 scarf005