dotfiles/scripts/node.sh

21 lines
413 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2021-07-27 18:59:49 +00:00
function install () {
echo "installing node js"
curl -fsSL https://fnm.vercel.app/install | bash -s -- --skip-shell
node-update
2021-07-27 18:59:49 +00:00
}
function uninstall () {
echo "uninstalling node js"
sudo rm -rf $ME/.fnm
}
if [ "$1" == "install" ]; then
install
elif [ "$1" == "uninstall" ] || [ "$1" == "remove" ]; then
uninstall
else
echo "please specify args with install or uninstall"
fi