October 28th, 2009

bish, smile

Programmers put effort into being lazy

It's true. It really is. I just spent an hour writing an Applescript to keep me from having to do the same set of commands over and over and over again.

The Problem: I have seven pieces of software that I like to keep up to date with the bleeding edge. To do so I have to do the following:

  1. Open a new Terminal.app tab
  2. Type in "cd <directory>"
  3. Remember if it's a git or svn repository
  4. Type in either "git pull" or "git svn rebase"
  5. Once the update is complete, notice if there are any updates. If not, stop.
  6. If there have been, optionally push those changes to a mirror with "git push"
  7. List the changes using "git changes" (an alias I've set up in my ~/.gitconfig)

Collapse )