My dotfiles and instructions on how to set up Mac OS X
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Mac OS X setup

This is a list of reproducible steps to get a clean Mac up and running with nice dotfiles for Fish, plus a whole bunch of apps and development tools.

Fish theme

Step 1: prepare Mac OS X

  1. Install Xcode from the App Store, open it, let it install additional tools
  2. Install the command line tools package with xcode-select --install
  3. Restore your saved ssh keys or create a new pair
  4. Install (optional)

Set your git credentials:

$ git config --global "Kevin Renskers"
$ git config --global ""

Step 2: install Homebrew and required packages

$ ruby -e "$(curl -fsSL"
$ brew analytics off
$ brew install coreutils

Step 3: dotfiles

Clone this repository

$ git clone

And run the script.

Restart your shell after it's done.

You can now run fish_config to change the terminal colors, abbreviations, etc.

Step 4: anything else you need


I'm using Homebrew's Python.

$ brew install python

A great package to install:

$ pip3 install git-up

Upgrade pip or setuptools itself:

$ pip3 install --upgrade pip
$ pip3 install --upgrade setuptools


$ brew install postgresql
$ initdb /usr/local/var/postgres
$ cp /usr/local/Cellar/postgresql/9.2.4/org.postgresql.postgres.plist ~/Library/LaunchAgents/
$ launchctl load -w ~/Library/LaunchAgents/org.postgresql.postgres.plist

To use with Python:

$ export CFLAGS=-Qunused-arguments
$ export CPPFLAGS=-Qunused-arguments
$ sudo pip install psycopg2

Or simply download from


$ brew install mysql
$ brew services start mysql
$ mysql_secure_installation

To use with Python:

$ sudo pip install mysql-python

Manually Starting and stopping the server:

$ mysql.server start
$ mysql.server start

Node.js and NPM (Node Package Manager)

$ brew install node

Once this is installed you can install your favorite packages:

$ npm install -g raml2html
$ npm install less --save

To update NPM:

$ npm install npm -g


$ brew install nginx
$ sudo ln -sfv /usr/local/opt/nginx/*.plist /Library/LaunchAgents
$ sudo mkdir /var/log/nginx/

Edit /usr/local/etc/nginx/nginx.conf, change port to 80 and error_log to /var/log/nginx/error.log. Then start the server:

$ sudo nginx

Config file:


Other commands:

$ sudo nginx -s stop
$ sudo nginx -s reload

Thanks to...