My personal library of SageMath code If you symlink it to ~/.sage/init.sage, the sample init.sage file will load this stuff into your session when Sage starts. It assumes that this repository lives at either ~/src/sage.d or ~/src/sage.d.git, but that's easy to change. More likely though you will want to copy/paste the relevant parts into your own personal (preexisting) init.sage. Newer versions of Sage don't load ~/.sage/init.sage during test mode, and all modules need to be imported explicitly. The test suite is therefore a little tricky to run; but "make check" should work.