Hobby-hacking Eric

2010-12-02

personal gitit wiki on MacOS X

Here's a quick little recipe for using gitit as a personal wiki on MacOS X. I assume here you already have the wiki itself set up, and now you just want it to run automatically in the background whenever you log in. You can do this by using launchd.
  1. Download net.johnmacfarlane.gitit.plist from this Gist
  2. Replace the WorkingDirectory with the path to your personal wiki
  3. Replace the last part of the PATH to include your cabal directory, and possibly something like /usr/local/bin or /opt/local/bin if you're using Git instead of Darcs
  4. Save the file in ~/Library/LaunchAgents
  5. Test it with launchctl load ~/Library/LaunchAgents, maybe using the Console application to search for logs should something go wrong.
  6. Log out and log back in (or maybe even restart your computer if you want to be sure)
Helpful bits and pieces:
  • This MacGeekery article
  • launchd.plist man page
  • Property List Editor in Developer Tools (beats looking at XML)
Edit 2010-12-04: Fixed broken link


4 comments:

單中杰 said...

I wonder how to use gitit for a blog?

kowey said...

Similarly, other people have been wondering how to use gitit as a bugtracker.

Seems almost doable, doesn't it?

I don't know. I would imagine that you'd need some sort of plugin combines pages in a directory in some order, say the file creation date. This would give you both the front page and categories. Some sort of RSS feed plugin could help too.

Or maybe gitit isn't the right answer for a blog and you need something else built on top of filestore and pandoc.

winterkoninkje said...

Your MacGeekery link is crazy broken. It should be: http://www.macgeekery.com/tips/all_about_launchd_items_and_how_to_make_one_yourself

kowey said...

Thanks! I think I must have been having some trouble with the blogger UI. I wish I was using something like gitit instead.