From c161026b286adb24eae794e217eabef66e76dd1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sat, 19 Jan 2019 14:07:38 +0000 Subject: [PATCH] use nvm for compiling vim --- common/configure_fresh_system.sh | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/common/configure_fresh_system.sh b/common/configure_fresh_system.sh index c1bd7500..ebc65243 100755 --- a/common/configure_fresh_system.sh +++ b/common/configure_fresh_system.sh @@ -68,18 +68,11 @@ mkdir -p ~/.cargo/ echo "all links done" echo "adding NVM" -curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash +$CURL -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash echo "sourcing env" source ~/.setenv - -# symlink 'nodejs' as node on some systems -# will replace symlink if it exists, but won't replace regular file -if [[ ! -f /usr/bin/node ]]; then - if [[ -f /usr/bin/nodejs ]]; then - $SUDO ln -vfs /usr/bin/nodejs /usr/bin/node - fi -fi +nvm use node # tools ln -vfs "$DIR/tools" ~/