TextMate Bundles

I'm learning the power that is TextMate (like Emacs, but prettier). TextMate really is setting itself up to be a rather decent OS for editing. From within TextMate I can blog, keep a todo list, program in any number of languages, WYSIWYG webpage editing, and calendaring. Heck, mix TextMate and Quicksilver and who *needs* Finder. I picked up the new Pragmatic Programmer's TextMate book to learn more of the underpinnings and how to stop repeating myself with simple tasks.

Like my thoughts on why plugins make, TextMate has excellent support via bundles (over 124 of them). However, the only way to get to these is via subversion. This is nice because it keeps me up to date, but is a little annoying having to get the subversion command right and path all the time.

So I wrote a small shell script to grab a bundle, get_tmbundle:

#!/bin/bash
svn --username anon --password anon co http://macromates.com\
/svn/Bundles/trunk/Bundles/$1.tmbundle ~/Library/Application Support/TextMate/Bundles/$1.tmbundle
I can then $ get_bundle AppleScript to get a new bundle installed.

You could also use the getBundle Bundle, but that seems like cheating. Of course, getBundle also has an AutoUpdater and is baked into TextMate as a bundle itself (how deep does the Rabbit Hole go?)

Technorati Tags: , , , , ,

About this article

written on
posted in Howto Back to Top

About the Author

Andrew Turner is an advocate of open standards and open data. He is actively involved in many organizations developing and supporting open standards, including OpenStreetMap, Open Geospatial Consortium, Open Web Foundation, OSGeo, and the World Wide Web Consortium. He co-founded CrisisCommons, a community of volunteers that, in coordination with government agencies and disaster response groups, build technology tools to help people in need during and after a crisis such as an earthquake, tsunami, tornado, hurricane, flood, or wildfire.