In the Erlang shell, how can I automatically read all my record definition headers

This started off as the question:

Almost every time when I use the Erlang shell, I'd like to run some command on shell startup, e.g. something like

rr("*.hrl").

Or similar. Currently I have to type it every time I start a Erlang shell and I'm getting tired of it and forget it all the time.

But this was actually the wrong question! For what I actually wanted to do is read my record definition headers in every shell job. Not use for other of the shell built-in commands to run on startup. So I changed the question header to show the question how it should have asked.

12
задан Peer Stritzinger 1 November 2010 в 21:37
поделиться