Rewrite ext setup scripts + module-cc irony path

This commit is contained in:
Henrik Lissner 2016-10-11 13:21:14 +02:00
parent a1b0db0b07
commit 483bdb79ee
4 changed files with 60 additions and 25 deletions

View file

@ -1,13 +1,22 @@
#!/usr/bin/env bash
cd ~/.emacs.d/ext
source ./VARS
source VARS
#
echo "Setting up JS (tern/trepanjs)"
if is-mac; then
brew install node
fi
case "$OSTYPE" in
darwin*)
brew install node
;;
linux*)
if is-arch; then
sudo pacman --noconfirm -S nodejs npm
else
echo "..."
exit 1
fi
;;
esac
npm -g install trepanjs tern