@@ 0,0 1,29 @@
# you don't need node on every system. for me, at least, I only use node whn
# installing some cool CLI tool made with nodeJS. even so, sticking with the
# node version shipped with the system is enough... but still, I do have a
# nvm.fish function and sometimes I do find the possibility of switching node
# versions helpful.
# BTW if your nvim is < 0.5.0 and you want to use CoC, then you'd need node.
echo "Installing or updating nvm"
# probably the least efficient way to get the latest tag, smh
# BEGIN nonsense
git clone https://github.com/nvm-sh/nvm
latest=$(git describe --tags `git rev-list --tags --max-count=1`)
rm -rf nvm
# END nonsense
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/"$latest"/install.sh | bash
echo "Should be done now"