Beginning work on the Tumblr template

Install Homebrew

First thing I wanted to do was install Homebrew. So I pasted the following into Terminal:

/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"

The rest of Homebrew’s installation instructions can be found here but the only really important part was above. Trying to to anything else in the Terminal tells me what I need to do next — install Xcode.

Install Xcode 3.2.6

I haven’t made the move to Lion yet, so it looks like it’s an older version for me. :/ Since the Apple website is hard to navigate for finding any version but the latest and greatest (supposedly), you can grab 3.2.6 here (you’ll need an Apple Developers ID to get it, FYI).

If you’re looking to install a different version of Xcode, you can check them out here.

Install Git (and MacVim)

A simple brew git does the job. Since I’m also a fan of MacVim (which I can go into later), I also did brew macvim. Don’t forget to link up the app with brew linkapps! Anytime you see me do mvim blahblah it means I’m using MacVim to edit the file blahblah.

For setting up Git, I followed these instructions since I’m on a Mac. There are also similar instructions for Windows and Linux. Then I did the following to set up the repository with Github (you should sign up for an account!), which is pretty standard.

$ mkdir codeendcode
$ cd codeendcode
$ git init
$ touch README
$ mvim README
$ git add README
$ git commit -m 'first commit, yo'
$ git remote add origin git@github.com:bergren2/codeendcode.git
$ git push -u origin master

My commit message was really bland, so I decided to add some color to Terminal:

$ git config color.ui true

Of course, having to type out git commit reminded me I need to define my aliases.

$ git config --global alias.s status
$ git config --global alias.ci commit
$ git config --global alias.co checkout

And last but not least, I want to globally ignore some files from being committed, such as Vim .swp files and a few Mac folder config files. (You can check out some guidelines here.) My ~/.gitignore_global looks like this, for now:

# Vim #
#######
*.swp
*.swo

# OS generated files #
######################
.DS_Store*
ehthumbs.db
Icon?
Thumbs.db

And I simply ran git config --global core.excludesfile ~/.gitignore_global to put it into effect.

So now we’ve got a template?

So I put the current template on Github for a starting point. Ideally we develop the template using something like Thimble, which is outdated. D: I’m sure we can look into some cool tools for this later, but really I’d just like to get to know Tumblr custom themes before we go too crazy with this stuff. :P I can’t wait to make this Tumblr look less boring!

  1. contexart-blog reblogged this from codeendcode
  2. codeendcode posted this
Blog comments powered by Disqus