How do I install the C# TextMate bundle?

4

1

I found two C# text mate bundles.

My questions are

  1. What is the "official" C# text mate bundle?
  2. If csharp-tmbundle is the only one to use for C#, how can I install it without the .tmbundle format?

prosseek

Posted 2011-09-13T21:13:51.657

Reputation: 4 635

Answer added for Textmate 2 below (just so people don't assume from the earlier answers to this question that it still requires extra work to keep things up to date. – tim – 2013-03-30T21:25:15.230

Answers

4

There are two ways to install. Note that .tmbundle is actually just a folder. But there's an easy way to install it over the GUI.

… using GetBundles

Use GetBundles, which is a meta-bundle for installing third party bundles. It lists all "official" and third party bundles for TextMate.

Open Terminal.app and enter:

mkdir -p ~/Library/Application\ Support/TextMate/Bundles
cd !$
svn co http://svn.textmate.org/trunk/Review/Bundles/GetBundles.tmbundle/
osascript -e 'tell app "TextMate" to reload bundles'

Then, find GetBundles under your Bundles menu. Here, you can select the C# bundle from GitHub:

enter image description here

… straight from the Git source

There's a wiki entry on the GitHub page, which says the following commands are necessary to install the bundle:

mkdir -p /Library/Application\ Support/TextMate/Bundles
cd /Library/Application\ Support/TextMate/Bundles
git clone https://github.com/wintermi/csharp-tmbundle csharp.tmbundle
osascript -e 'tell app "TextMate" to reload bundles'

slhck

Posted 2011-09-13T21:13:51.657

Reputation: 182 472

+1 Just what I was looking for. I did run into an error trying to run that apple script though. Strange error, "no suitable image found". Anyhoo, if anyone else gets that, just go to TextMate >> Bundles >> Bundle Editor >> Reload Bundles. Same thing, just less geektastic as the apple script. – Stephano – 2012-01-10T01:54:18.913

0

Grab the free Textmate 2 upgrade from TM1 and take advantage of its built-in bundle management

tim

Posted 2011-09-13T21:13:51.657

Reputation: 329