-
-
Save DanLuchi/4544035 to your computer and use it in GitHub Desktop.
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 | |
# RSpec bundle | |
if [ -d RSpec.tmbundle ]; then mv RSpec.tmbundle ~/desktop/_tm_bundle_backups; fi | |
git clone git://github.com/rspec/rspec-tmbundle.git RSpec.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 | |
# CoffeeScriptBundle bundle | |
if [ -d CoffeeScriptBundle.tmbundle ]; then mv CoffeeScriptBundle.tmbundle ~/desktop/_tm_bundle_backups; fi | |
git clone git://github.com/jashkenas/coffee-script-tmbundle CoffeeScriptBundle.tmbundle | |
# TMCtagsBundle bundle | |
if [ -d TMCtagsBundle.tmbundle ]; then mv TMCtagsBundle.tmbundle ~/desktop/_tm_bundle_backups; fi | |
git clone git://github.com/sbenhaim/tm-ctags-tmbundle TMCtagsBundle.tmbundle | |
# reload | |
osascript -e 'tell app "TextMate" to reload bundles' | |
echo "Done." | |
echo "" | |
echo "You may also want to remove some of the Textmate bundles that you are not using as there can be command conflicts." | |
echo "Bundles > Bundle Editor > Show Bundle Editor. Click Filter List" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment