Skip to content
forked from ryanb/dotfiles

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

License

Notifications You must be signed in to change notification settings

werebus/dotfiles

 
 

Repository files navigation

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:https://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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 51.9%
  • Ruby 37.7%
  • HTML 6.9%
  • Python 3.5%