Friday, August 11, 2017

Personal Groove Libraries

Every once in awhile I a request about setting up MMA to use personal libraries without needing to become root to add them. It's pretty simple:

In your .mmarc file (create one in your home directory if it doesn't exist) add the following line:

    SetLibPath  your_directory  $_LibPath

That's it.

Assuming that you have your personal files in ./config/mma/grooves it'd look like:

    SetLibPath  ~/.config/mma/grooves  $_LibPath

Including the $_LibPath in the setting line lets MMA search your library files first and, if it doesn't find the requested file, check the files supplied in your distribution second.

Now, put your creations where they belong. Don't forget to update using the -g option!

Hope this helps! Let me know if there is a problem.

No comments:

Post a Comment

Mea Culpa

Isn't it just plain annoying when you end up wasting most of an afternoon trying to find a bug in your code when there is no bug? Just h...