config files for zsh, bash, completions, gem, git, irb, rails
Shell Ruby Python HTML Perl
Pull request Compare This branch is 92 commits ahead, 14 commits behind ryanb:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bash
bin
bundle
config
git_template/hooks
i3
ssh
.gitignore
.gitmodules
LICENSE
README.md
Rakefile
Xresources
Xresources.def
bash_profile
bashrc
debundle.rb
editrc
gemrc
gitconfig.erb
gitignore
hgignore_global
hgrc.erb
i3status.conf
inputrc
irbrc
railsrc
rdebugrc
tmux.conf.erb
vimrc.basic

README.md

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.

Installation

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

Environment

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?

Features

Bash configuration

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

Tab completion is also added to knife, 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.

Vim

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.

irb

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
  • A little script to print out a visual directory tree
  • hr

Other stuff

  • Basic gemrc and rdebugrc files
  • Sensible git and hg configs and global ignore files
  • An inputrc with the magic space