Erlang Installer Beta: A Better Way To Use Erlang On OS X
erlang-solutions.com
erlang-solutions.com
brew update
brew upgrade
npm -g upgrade
for f in ~/projects/*; do
cd $f
npm update --save
npm update --save-dev
mix deps.update --all
elm-packages update
bundle update
npm test
mix test
rake test
done # I fixed the script for you:
[...]
for f in $(ls -1d ~/projects/**/); do
cd -- "$f"
[...]
done [...]
pushd .
for [...]
popd
I'm always a fan of ending up back where I started. (
for ...; do
cd ...
done
)
# script exits, you're back where you started
If you'd prefer to see it in isolation: pwd; ( cd /tmp; pwd ); pwdI've been pretty satisfied with it, and haven't had a single problem with it yet - it just works (™).
I recommend trying it out, relevant links:
On Linux I used the 'kerl' script to easily switch between installations: https://github.com/kerl/kerl
Seems like it works on OS X too: http://stratus3d.com/blog/2014/10/24/install-erlang-16-on-ma...
A similar tool, written by a former co-worker of mine: https://github.com/metadave/erln8
At any rate I've been using asdf https://github.com/asdf-vm/asdf to manage my erlang and elixir installs on a per project basis for a while now and it has been working well for me.
The killer feature of these installer options is that they make the tools much for approachable for everyone!
Configuring and setting up a bunch of tools that you don't understand makes it very hard to get your feet wet. I think once you're familiarized with the tools it's important to learn how things work. But if you're just getting started, there's no reason for you to waste your time configuring anything. The default config should be beginner friendly and provide sensible defaults.
Edit: I mostly work with Elixir and have Erlang installed via Homebrew right now.
That said, since we're all using this to announce our idiosyncratic package managers, I use Nix.