Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Shell scripts for applying default settings to UNIX-based operating systems.
Shell Ruby

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.



Configures your user profile settings with useful defaults for your development environment. By default, these are set to my preferences (namely for Mac OS) but you can change them to your liking by editing any of the *.txt files in the home_files directory. Read on to learn more.


  • Configures the Bash shell .bashrc file.

  • Configures the Bash shell .bash_profile file.

  • Configures the Git .gitconfig file.

  • Configures the Git .gitignore file.

  • Configures the Ruby Gems .gemrc file.

  • Configures the Ruby IRB .irbrc file.

  • Configures the Ruby Debugger .rdebugrc file.

  • Configures the Ruby on Rails .railsrc file (includes Rails Setup Template support).



Open a terminal window and execute the following commands:

Current Version (stable)

git clone git://
cd dotfiles
git checkout v2.1.0

Master Version (unstable)

git clone git://
cd dotfiles

Edit and save the *.txt files as you see fit.

Open a terminal window and execute the following commands to install:

cd ..
ruby install.rb

You can delete the dotfiles directory after installation. There are, however, a couple files that need manual care regardless of whether you tweaked the files prior to installation or not:

  • .bashrc - If installed on a OS other than a Mac, adjust the path to point to the correct bin directory for the rbenv binary.

  • .gemrc - Uncomment the “gemcutter_key” line and add your own RubyGems key for publishing gems.

  • .gitconfig - Uncomment the name/email/token lines within the [user] and [github] sections to replace with your own details.


From the command line, the following commands are possible (please see all home_files/*.txt files for additional details):

.. = "cd .."
... = "cd ../.."
c = "clear"
h = "history"
l = "ls -alh"
p = "pwd"
cpath='pwd | tr -d "\r\n" | pbcopy |echo "Current path copied to clipboard."'
o = "open"
e = "sublime"
home = "cd $HOME"
tree = "find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'"
bashs = "exec $SHELL"

pgs = "pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start"
pgq = "pg_ctl -D /usr/local/var/postgres stop -s -m fast"

apachec = "mate /etc/apache2/httpd.conf"
apachev = "mate /private/etc/apache2/extra/httpd-vhosts.conf"
apaches = "mate /private/etc/apache2/extra/httpd-ssl.conf"
apachest = "sudo /usr/sbin/apachectl start"
apachesp = "sudo /usr/sbin/apachectl stop"
apacher = "sudo /usr/sbin/apachectl restart"

gst = "git status -sb"
glast = "git show --stat"
gg = "git grep"
gl = "git log --oneline --decorate"
glc = "git shortlog -sne"
gld = "git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative"
gln = "git log --name-status"
gd = "git diff"
gdw = "git diff --word-diff"
gb = "git branch -v"
gm = "git merge"
gcl = "git clone"
gch = "git checkout"
ga = "git add"
gall = "git add ."
gco = "git commit"
gca = "git commit -a"
gcam = "git commit -a -m"
gash = "git stash"
gf = "git fetch"
gpu = "git pull"
gp = "git push"
gpo = "git push origin"
gpp = "git push production master"
gps = "git push stage stage:master"
gtag = "git tag"
gtags = "git push --tags"
gres = "git reset --hard HEAD"
grev = "git revert"

rd = "rdoc -a -o _doc"

geml = "gem list"
gemi = "gem install"
gemup = "gem update"
gemu = "gem uninstall"
gemc = "gem cleanup"
gems = "gem server"
gemw = "gem whois"

b = "bundle"
bi = "bundle install"
bu = "bundle update"
bo = "bundle outdated"
bcon = "bundle console"
be = "bundle exec"
ber = "bundle exec rspec"
bers = "bundle exec rspec spec"
bec = "bundle exec cucumber"
bch = "rm -f Gemfile.lock; bundle check"
rebundle = "bch; bundle package"

g = "gemsmith"
go = "gemsmith -o"

hpas = "hp -a -s"

sc = "rails/console"
ss = "rails/server"
sg = "rails/generate"
sdb = "rails/dbconsole"
scs = "sc --sandbox"
sgc = "sg controller"
sgm = "sg model"
sgs = "sg scaffold"
rdbd = "rake db:drop"
rdbc = "rake db:create"
rdbm = "rake db:migrate"
rassp = "rake assets:precompile"
rassc = "rake assets:clean"
taild = "tail -f log/development.log"
tailt = "tail -f log/test.log"
res = "touch tmp/restart.txt"
debug = "rdebug -c"
rprofile = "ruby-prof --printer=graph_html ./script/rails runner > profile.html"
rpaths = "rake routes | sed -e "1d" -e "s,^[^/]*,,g" | awk '{print $1}' | sort | uniq"
erd = "rake erd attributes=primary_keys,foreign_keys,timestamps,inheritance,content inheritance=true orientation=vertical filename=doc/design/models"
dmodels = "railroady -l -i -a --all-columns -j -t -o doc/design/ -M"
dcontrollers = "railroady -l -i -o doc/design/ -C"
dstate = "railroady -l -i -o doc/design/ -A"

caps = "cap stage deploy"
capp = "cap production deploy"

rsite = "rake sitemap:refresh:no_ping"
rsitep = "rake sitemap:refresh"

From IRB or the Rails console, the following commands are possible:

RA.copy - Copies data to the MacOS clipboard.
RA.paste - Pastes data from the MacOS clipboard.
ap - Prints collections in an easy to read format.


Inspiration for this dotfiles project came from these dotfile projects (in case they are of interest to you as well):

The following is a reference to bash shell colors:


Please log all feedback/issues via GitHub Issues. Thanks.


Developed by Brooke Kuhlmann at Red Alchemist


Copyright © 2010 Red Alchemist. Read the LICENSE for details.


Read the CHANGELOG for details.

Something went wrong with that request. Please try again.