Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

config files for zsh, bash, completions, gem, git, irb, rails

branch: master

Matt Moretti's Dot Files

These are config files to set up a system the way I like it. The majority of it was borrowed from Ryan Bates' repo, so you might want to start there if you're looking to create your own version.


git clone --recursive git:// ~/.dotfiles
cd ~/.dotfiles
rake install


I am running on Mac OS X, but it will likely work on Linux as well with minor fiddling. I use bash, but I know a lot of folks these days love zsh. If you're one of those people, might I suggest Oh-my-zsh?


Bash configuration

Bash configuration is parceled out into various files in the ~/.bash directory.

Tab completion is also added to rake and cap commands:

rake db:mi<tab>
cap de<tab>

To speed things up, the results are cached in local .rake_tasks~ and .cap_tasks~. It is smart enough to expire the cache automatically in most cases, but you can simply remove the files to flush the cache.

I switch bash to vi-mode which might be a bit weird for some.

If you're using git, you'll notice the current branch name shows up in the prompt while in a git repository.

If there are some shell configuration settings which you want secure or specific to one system, place it into a ~/.localrc file. This will be loaded automatically if it exists.


My organization keeps its vim configuration in a Seperate repository. It's included as a sub-module of this repository.

You can place any custom vim plugins in ~/.bundle; they'll be loaded by pathogen. Use the .vimrc.before, .vimrm.after, .gvimrc.before, and .gvimrc.after files for further customization.


I rely on a set of tools for irb called 'irbtools' which are packaged up in a meta-gem -- install it with gem install irbtools.

Miscellaneous scripts

In the ~/.bin directory

  • The mvim wrapper script
  • Resty
  • A little script to print out a visual directory tree

Other stuff

  • Basic gemrc and rdebugrc files
  • Sensible git and hg configs and global ignore files
  • An inputrc with the magic space
Something went wrong with that request. Please try again.