Created
June 18, 2010 02:31
-
-
Save mkdynamic/443129 to your computer and use it in GitHub Desktop.
Install all of http://github.com/phuibonhoa's TM bundles (OS X only)
This file contains 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
#!/usr/bin/env bash | |
# | |
# install all of http://github.com/phuibonhoa's TM bundles (OS X only) | |
# | |
echo "Installing bundles..." | |
# backup dir | |
if [ -d ~/desktop/_tm_bundle_backups ]; then rm -rf ~/desktop/_tm_bundle_backups; fi | |
mkdir ~/desktop/_tm_bundle_backups | |
# make sure TM bundle dir exists (it won't for fresh installs) | |
mkdir -p ~/Library/Application\ Support/TextMate/Bundles/ | |
# change to TM bundle dir | |
cd ~/Library/Application\ Support/TextMate/Bundles/ | |
# HAML bundle | |
if [ -d Haml.tmbundle ]; then mv Haml.tmbundle ~/desktop/_tm_bundle_backups; fi | |
git clone git://github.com/phuibonhoa/handcrafted-haml-textmate-bundle.git Haml.tmbundle | |
# Rails bundle | |
if [ -d Rails.tmbundle ]; then mv Rails.tmbundle ~/desktop/_tm_bundle_backups; fi | |
git clone git://github.com/phuibonhoa/ruby-on-rails-tmbundle.git Rails.tmbundle | |
# Ruby bundle | |
if [ -d Ruby.tmbundle ]; then mv Ruby.tmbundle ~/desktop/_tm_bundle_backups; fi | |
git clone git://github.com/phuibonhoa/ruby-tmbundle.git Ruby.tmbundle | |
# Shoulda bundle | |
if [ -d Shoulda.tmbundle ]; then mv Shoulda.tmbundle ~/desktop/_tm_bundle_backups; fi | |
git clone git://github.com/phuibonhoa/ruby-shoulda-tmbundle.git Shoulda.tmbundle | |
# Sass bundle | |
if [ -d Sass.tmbundle ]; then mv Sass.tmbundle ~/desktop/_tm_bundle_backups; fi | |
git clone git://github.com/phuibonhoa/ruby-sass-tmbundle.git Sass.tmbundle | |
# JavascriptExtension bundle | |
if [ -d JavascriptExtension.tmbundle ]; then mv JavascriptExtension.tmbundle ~/desktop/_tm_bundle_backups; fi | |
git clone git://github.com/phuibonhoa/Javascript-Bundle-Extension.git JavascriptExtension.tmbundle | |
# reload | |
osascript -e 'tell app "TextMate" to reload bundles' | |
echo "Done." | |
You are using handcrafted tm bundle, not yours, right?
git clone git://github.com/handcrafted/handcrafted-haml-textmate-bundle.git Haml.tmbundle
Actually, that's out of date. I just updated it to use phuibonhoa's fork.
any chance this will be updated for Sublime Text ?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cheers, have updated!