Skip to content

Instantly share code, notes, and snippets.

@alexrinass
Created May 7, 2011 11:53
Show Gist options
  • Save alexrinass/960440 to your computer and use it in GitHub Desktop.
Save alexrinass/960440 to your computer and use it in GitHub Desktop.
TextMate Bundles Updater/Installer
#!/bin/bash
#
# Update or checkout official TextMate bundles.
#
TEXTMATE_SUPPORT_DIR=~/Library/Application\ Support/TextMate
if [ -z $LC_CTYPE ]; then
export LC_CTYPE=en_US.UTF-8
fi
# Checkout bundles unless already exist
if [ ! -d "$TEXTMATE_SUPPORT_DIR/Bundles" ]; then
mkdir -p "$TEXTMATE_SUPPORT_DIR" && cd !$ && svn co http://svn.textmate.org/trunk ./
else
cd "$TEXTMATE_SUPPORT_DIR" && svn update
fi
osascript -e 'tell app "TextMate" to reload bundles'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment