Create a gist now

Instantly share code, notes, and snippets.

Update Textmate bundles
#!/bin/sh
#
# Update Textmate bundles
# Standard OS X Textmate bundle Verzeichnis
TEXTMATE_BUNDLES="$HOME/Library/Application Support/Textmate/Bundles"
# … ins Verzeichnis wechseln
echo "\n*** Wechsle ins Textmate bundle Verzeichnis..."
cd "$TEXTMATE_BUNDLES"
#
echo "\n*** Installiere Textmate bundles..."
# Cleanup Bundles
echo "\n*** Räume auf.."
rm -rf *.tmbundle
# Update bundles from Github
echo "\n*** Alle Textmate bundles von Github holen..."
# HTML
echo "\n*** Lade HTML Textmate bundles..."
git clone git://github.com/textmate/html.tmbundle.git "HTML.tmbundle"
git clone git://github.com/johnmuhl/html5.tmbundle.git "HTML5.tmbundle"
git clone git://github.com/phuibonhoa/handcrafted-haml-textmate-bundle.git "HAML.tmbundle"
# CSS
echo "\n*** Lade CSS Textmate bundles..."
git clone git://github.com/textmate/css.tmbundle.git "CSS.tmbundle"
git clone git://github.com/desandro/CSS3.tmbundle.git "CSS3.tmbundle"
git clone git://github.com/seaofclouds/sass-textmate-bundle.git "SASS.tmbundle"
# Testing
echo "\n*** Lade testing Textmate bundles..."
git clone git://github.com/UnderpantsGnome/cucumber-tmbundle.git "Cucumber.tmbundle"
git clone git://github.com/rspec/rspec-tmbundle.git "RSpec.tmbundle"
git clone git://github.com/lucasefe/capybara-tmbundle.git "Capybara.tmbundle"
# Ruby and Rails
echo "\n*** Lade Ruby and Rails Textmate bundles..."
git clone git://github.com/drnic/ruby-on-rails-tmbundle.git "Ruby on Rails.tmbundle"
git clone git://github.com/textmate/ruby.tmbundle.git "Ruby.tmbundle"
# Javascript
echo "\n*** Lade Javascript Textmate bundles..."
git clone git://github.com/subtleGradient/javascript-tools.tmbundle.git "Javascript tools.tmbundle"
git clone git://github.com/kswedberg/jquery-tmbundle.git "JavaScript jQuery.tmbundle"
git clone git://github.com/jashkenas/coffee-script-tmbundle.git "Coffeescript.tmbundle"
git clone git://github.com/drnic/javascript-node.tmbundle.git "JavaScript Node.tmbundle"
git clone git://github.com/fgnass/jshint.tmbundle.git "JSHint.tmbundle"
git clone git://github.com/kswedberg/jquery-tmbundle.git "jQuery.tmbundle"
# Python
echo "\n*** Lade Python Textmate bundles..."
git clone git://github.com/textmate/python.tmbundle.git "Python.tmbundle"
# PHP
echo "\n*** Lade PHP Textmate bundles..."
git clone git://github.com/textmate/php.tmbundle.git "PHP.tmbundle"
# Miscellaneous
echo "\n*** Lade miscellaneous Textmate bundles..."
git clone git://github.com/textmate/todo.tmbundle.git "Todo.tmbundle"
git clone git://github.com/textmate/textmate.tmbundle.git "TextMate.tmbundle"
git clone git://github.com/textmate/markdown.tmbundle.git "Markdown.tmbundle"
git clone git://github.com/textmate/textile.tmbundle.git "Textile.tmbundle"
git clone git://github.com/jcf/git-tmbundle.git "Git.tmbundle"
git clone git://github.com/textmate/json.tmbundle.git "JSON.tmbundle"
git clone git://github.com/textmate/shellscript.tmbundle.git
# Let Textmate reload the bundles
echo "\n*** Lade Textmate bundles neu..."
echo "*** Fertig!"
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