You need to have svn installed, of course. If you want to improve it, here’s the gist.

#!/bin/bash
tmsupportpath="/Library/Application Support/TextMate"
bundlepath="$tmsupportpath/Bundles"
if [ ! -d "$bundlepath" ]
  then
  echo "First time, eh?  Making $bundlepath..."
  mkdir -p "$bundlepath"
fi
 
if [ ! -d "$tmsupportpath/Support" ]
  then 
  cd "$tmsupportpath"
  echo "Checking out the most recent Support folder..."
  svn co http://macromates.com/svn/Bundles/trunk/Support
fi
 
cd "$bundlepath"
svn co http://macromates.com/svn/Bundles/trunk/Bundles/$1.tmbundle
svn up *.tmbundle
osascript -e 'tell app "TextMate" to reload bundles'
 
cd "$tmsupportpath/Support"
svn up

2 Responses to “Simple Shell Script for Installing TextMate Bundles”

  1. Tired of getting low amounts of useless traffic to your website? Well i wish to share with you a brand new underground tactic which makes myself $900 every day on 100% AUTOPILOT. I possibly could be here all day and going into detail but why dont you simply check their website out? There is a excellent video that explains everything. So if your serious about making quick cash this is the website for you. Auto Traffic Avalanche

  2. Fed up with obtaining low numbers of useless visitors to your site? Well i wish to share with you a fresh underground tactic which makes me personally $900 per day on 100% AUTOPILOT. I could be here all day and going into detail but why dont you merely check their website out? There is a great video that explains everything. So if your serious about making easy money this is the site for you. Auto Traffic Avalanche

Leave a Reply