Erlang Documentation Shell Command

I spend a lot of time looking things up in the man pages on erlang.org. Here’s how to setup a nice shortcut if you’re a mac user:


$> echo -e '#!/bin/sh\nopen http://erlang.org/doc/man/$1.html\n' > erld
$> chmod +x erld
$> sudo mv erld /usr/local/bin/

Now you can do:

$> erld lists

This runs “open http://erlang.org/doc/man/lists.html”

Enjoy!

2 Responses to “Erlang Documentation Shell Command”

  1. etnt Says:

    why not use: erl -man MODULE

  2. MarquitaFOX29 Says:

    Buildings are not cheap and not every person is able to buy it. Nevertheless, loans are created to aid different people in such cases.

Leave a Reply