When you start GAP, it looks for the file with the name .gaprc in
your home directory.
If such a file is found it is read after
libname/init.g, but before any of the files mentioned on the command
line are read. You can use this file for your private customizations.
For example, if you have a file containing functions or data that you
always need, you could read this from .gaprc. Or if you find some of
the names in the library too long, you could define abbreviations for
those names in .gaprc. The following sample .gaprc file does both.
Read("/usr/you/dat/mygroups.grp");
Ac := Action;
AcHom := ActionHomomorphism;
RepAc := RepresentativeAction;
If you have already a .gaprc file for GAP 3, its settings might not be
compatible with GAP 4. In this case it has to be removed. On UNIX Systems
the following .gaprc file can be used to load alternatively a .gap3rc or
a .gap4rc file from your home directory.
if IsBound(Permutations) then
# GAP 3
Exec("echo \"READ(\\\"`pwd ~`/.gap3rc\\\");\" > /tmp/jJj");
else
# GAP 4
Exec("echo \"READ(\\\"`pwd ~`/.gap4rc\\\");\" > /tmp/jJj");
fi;
Read("/tmp/jJj");
[Top] [Previous] [Up] [Next] [Index]
GAP 4 manual