Created
May 7, 2011 11:53
-
-
Save alexrinass/960440 to your computer and use it in GitHub Desktop.
TextMate Bundles Updater/Installer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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