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

Truncate

I just found a minor bug in the TRUNCATE code. It didn't accept an integer argument for the Side= option. The underlying code all worked...