19962011Ericsson AB, All Rights Reserved
The contents of this file are subject to the Erlang Public License,
Version 1.1, (the "License"); you may not use this file except in
compliance with the License. You should have received a copy of the
Erlang Public License along with this software. If not, it can be
retrieved online at http://www.erlang.org/.
Software distributed under the License is distributed on an "AS IS"
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
the License for the specific language governing rights and limitations
under the License.
The Initial Developer of the Original Code is Ericsson AB.
shell_defaultJoe ArmstrongJoe ArmstrongBjarne DäckerJoe Armstrong1996-09-09Ashell_default.sgmlshell_defaultCustomizing the Erlang Environment
The functions in shell_default are called when no module
name is given in a shell command.
In command one, the module lists is called. In command
two, no module name is specified. The shell searches the modules
user_default followed by shell_default for the
function foo/1.
shell_default is intended for "system wide"
customizations to the shell. user_default is intended for
"local" or individual user customizations.
Hint
To add your own commands to the shell, create a module called
user_default and add the commands you want. Then add the
following line as the first line in your .erlang file in your
home directory.
code:load_abs("$PATH/user_default").
$PATH is the directory where your
user_default module can be found.