Skip to content

Instantly share code, notes, and snippets.

@mkdynamic
Created June 18, 2010 02:31
Show Gist options
  • Star 13 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • 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."
@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