Textmate Bundles

Saturday, 24 October 2009

Updated on: March 15 2011 at 10:00 p.m.

TextMate is my primary editor of choice. The main reason I use TextMate is for the bundles which is a major productivity increaser for developers. TextMate comes with a few bundles by default but the official bundle repository provides a wider variety of bundles to choose from.

In order to get the official bundles, run the following terminal commands:

Official bundles:

1
2
3
4
5
6
7
8
mkdir -p /Library/Application\ Support/TextMate/Bundles cd /Library/Application\ Support/TextMate/Bundles
svn co http://svn.textmate.org/trunk/Bundles/ .
osascript -e 'tell app "TextMate" to reload bundles'

mkdir -p /Library/Application\ Support/TextMate/Bundles
cd !$
git clone git://gitorious.org/git-tmbundle/mainline.git Git.tmbundle
osascript -e 'tell app "TextMate" to reload bundles'

Updating the official bundles:

Use this command to update the official TextMate Bundles.

1
2
cd /Library/Application\ Support/TextMate/Bundles svn up *.tmbundle
osascript -e 'tell app "TextMate" to reload bundles'

JavaScript Tools Bundle:

A personal favorite of mine. When working with JavaScript JSLint is ran on your code every time you save your code and will indicate whether or not there is an error in your code.

1
2
3
cd /Library/Application\ Support/TextMate/Bundles
git clone git://github.com/subtleGradient/javascript-tools.tmbundle.git
osascript -e 'tell app "TextMate" to reload bundles'

Django (python) Bundle:

This bundle is another favorite of mine. It contains some convenience commands for auto generating model field code so that you waste less time typing.

1
2
3
cd /Library/Application\ Support/TextMate/Bundles
git clone git://github.com/textmate/python-django.tmbundle.git
osascript -e 'tell app "TextMate" to reload bundles'

Django Template Bundle:

Another Django bundle that contains commands for auto generating standard Django template methods and logic.

1
2
3
cd /Library/Application\ Support/TextMate/Bundles
git clone git://github.com/textmate/python-django-templates.tmbundle.git
osascript -e 'tell app "TextMate" to reload bundles'

TextMate Magic Drawer

The missing drawer that should have been packaged with TextMate.

1
bash <(curl -s -L http://goo.gl/4RUoP)
blog comments powered by Disqus