Have you ever wished github's awesome Atom text editor had better support for jumping straight to a class or method definition like Rubymine or Sublime Text? Me too! So, here's a short set of instructions how to get this functionality working on OS X!

To summarize what we're going to do:

Install exuberant ctags from homebrew

Install an rbenv plugin and a gem that automatically generates ctags for rubygems

Let git know that you want to include the ctags binary and your new hooks in all git tracked repos

Create a ctags binary that generates a tags file for each project, and a few git hooks to keep our tags files up to date

Ensure your git-tracked repos have the newly created hooks and ctags binary

And copy them into your git template directory (probably at ~/.git_template). These hooks trigger a run of git ctags whenever you move between branches, commit, etc., so your tags file is always up to date!

# run this command to copy your hooks and ctags binary to the repo# don't worry, it won't blow away your commit history or do anything destructive!
git init
# to seed it once, just to prove it works
run `git ctags`