1shell_default(3) Erlang Module Definition shell_default(3)
2
3
4
6 shell_default - Customizing the Erlang environment.
7
9 The functions in this module are called when no module name is speci‐
10 fied in a shell command.
11
12 Consider the following shell dialog:
13
14 1> lists:reverse("abc").
15 "cba"
16 2> c(foo).
17 {ok, foo}
18
19 In command one, module lists is called. In command two, no module name
20 is specified. The shell searches module user_default followed by module
21 shell_default for function c/1.
22
23 shell_default is intended for "system wide" customizations to the
24 shell. user_default is intended for "local" or individual user cus‐
25 tomizations.
26
28 To add your own commands to the shell, create a module called user_de‐
29 fault and add the commands you want. Then add the following line as the
30 first line in your .erlang file in your home directory.
31
32 code:load_abs("$PATH/user_default").
33
34 $PATH is the directory where your user_default module can be found.
35
36
37
38Ericsson AB stdlib 4.3.1.3 shell_default(3)