Skip to content

Instantly share code, notes, and snippets.

@tzarskyz
Forked from kueda/tmbundle.sh
Created March 13, 2014 04:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tzarskyz/9522020 to your computer and use it in GitHub Desktop.
Save tzarskyz/9522020 to your computer and use it in GitHub Desktop.
#!/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment