Skip to content

Instantly share code, notes, and snippets.

@nakajima
Created June 23, 2010 15:54
Show Gist options
  • Select an option

  • Save nakajima/450115 to your computer and use it in GitHub Desktop.

Select an option

Save nakajima/450115 to your computer and use it in GitHub Desktop.
Get a project going, nakajima-style
#!/usr/bin/env bash
echo "Installing key bindings"
mkdir -p "$HOME/Library/KeyBindings"
curl --silent "http://github.com/nakajima/dot-rot/raw/master/nakajima/DefaultKeyBinding.dict" > "$HOME/Library/KeyBindings/DefaultKeyBinding.dict"
echo "Installing TextMate bundles"
mkdir -p "$HOME/Library/Application Support/TextMate/Bundles"
function get_bundle() {
test -e "$HOME/Library/Application Support/TextMate/Bundles/$1.tmbundle" || git clone $2 "$HOME/Library/Application Support/TextMate/Bundles/$1.tmbundle"
}
get_bundle 'Ack in Project' 'git://github.com/protocool/ack-tmbundle.git'
get_bundle 'Nakajima' 'git://github.com/nakajima/nakajima-tmbundle.git'
get_bundle 'RSpec' 'git://github.com/nakajima/rspec-tmbundle.git'
get_bundle 'Cucumber' 'git://github.com/bmabey/cucumber-tmbundle.git'
get_bundle 'HAML' 'git://github.com/textmate/ruby-haml.tmbundle.git'
get_bundle 'Sass' 'git://github.com/seaofclouds/sass-textmate-bundle.git'
echo "Install whitespace script (make sure $HOME/bin is in your PATH)"
mkdir -p "$HOME/bin"
curl --silent "http://github.com/nakajima/dot-rot/raw/master/bin/whitespace" > "$HOME/bin/whitespace"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment