iain / osx_settings

Some bash settings

This URL has Read+Write access

name age message
file .aliases.sh Mon Sep 14 23:57:25 -0700 2009 some polishing [Iain Hecker]
file .autotest Thu Oct 15 03:21:25 -0700 2009 autotest file update [iain]
file .general.sh Tue Jul 07 14:28:30 -0700 2009 Readme added [iain]
file .git.sh Sat Jun 20 04:26:02 -0700 2009 Initial commit Add my dotfiles for Ruby develo... [iain]
file .git_autocompletion.sh Sat Jun 20 04:26:02 -0700 2009 Initial commit Add my dotfiles for Ruby develo... [iain]
file .irbrc Mon Sep 14 23:57:25 -0700 2009 some polishing [Iain Hecker]
file .project_aliases.sh Sat Jun 20 04:26:02 -0700 2009 Initial commit Add my dotfiles for Ruby develo... [iain]
file .rails.sh Thu Oct 15 03:21:25 -0700 2009 autotest file update [iain]
file .ruby.sh Sat Jun 20 04:26:02 -0700 2009 Initial commit Add my dotfiles for Ruby develo... [iain]
file .ssh_autocompletion.sh Sat Jun 20 04:26:02 -0700 2009 Initial commit Add my dotfiles for Ruby develo... [iain]
file .vcs.sh Mon Sep 14 23:57:25 -0700 2009 some polishing [Iain Hecker]
directory .vim/ Thu Oct 15 03:22:23 -0700 2009 VIM settings [iain]
file .vimrc Thu Oct 15 03:22:23 -0700 2009 VIM settings [iain]
file README.rdoc Tue Jul 07 14:28:30 -0700 2009 Readme added [iain]
README.rdoc

OSX Settings

This is where I put my bash settings for OSX. This includes:

  • Nicely colored and tiny prompt
  • Yellow = clean, red = dirty in prompt for SVN and Git
  • Automatic project aliases
  • Ruby on Rails specific aliases
  • … and much more!

Installation

  • Check out this repository
  • Add these lines your /etc/bashrc, depending on where you cloned this repo:

    . /Users/iain/.osx_settings/.general.sh . /Users/iain/.osx_settings/.aliases.sh . /Users/iain/.osx_settings/.git.sh . /Users/iain/.osx_settings/.git_autocompletion.sh . /Users/iain/.osx_settings/.project_aliases.sh . /Users/iain/.osx_settings/.rails.sh . /Users/iain/.osx_settings/.ruby.sh . /Users/iain/.osx_settings/.ssh_autocompletion.sh . /Users/iain/.osx_settings/.vcs.sh

  • Symlink any other files that you want to use, in your home directory.
  • Add your development directories to make their subdirectories symlinks, to your bashrc or bash_profile:

    PROJECT_PARENT_DIRS[1]="$HOME/Development/Ruby" PROJECT_PARENT_DIRS[2]="$HOME/Development/Other"

Credits

I can’t remember exactly where I got all stuff, but mostly from relevance/etc.

Heavily modified some stuff to fit my own needs of course.

Thanks everybody who contributed!

Feel free to use this, fork this or whatever.