Skip to content

Instantly share code, notes, and snippets.

@mkdynamic
Created June 18, 2010 02:31
Show Gist options
  • Save mkdynamic/443129 to your computer and use it in GitHub Desktop.
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)
#!/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."
@mikegowen
Copy link

This rocks but if it's done on a fresh Textmate install the Bundle folder won't be there.

@mkdynamic
Copy link
Author

Cheers, have updated!

@plagi
Copy link

plagi commented Apr 20, 2011

You are using handcrafted tm bundle, not yours, right?

git clone git://github.com/handcrafted/handcrafted-haml-textmate-bundle.git Haml.tmbundle

@mkdynamic
Copy link
Author

Actually, that's out of date. I just updated it to use phuibonhoa's fork.

@jcquarto
Copy link

jcquarto commented Feb 8, 2013

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