The file
init.m2 is loaded automatically when the program is started, if it exists.
On most systems the file is sought in the directory
$HOME/.Macaulay2/, where
$HOME is replaced by the path to the user's home directory.
Under Mac OS X, the file is sought instead in the directory
$HOME/Library/Application Support/Macaulay2/.
If the user wants a file called, say,
start.m2 in the current directory to be loaded automatically when the program is started, then the following line of code can be placed in the file
init.m2.
if fileExists "start.m2" then load(currentDirectory|"start.m2")