This post includes my OSX Developer Setup and i uses this post to setup new macs, so the order is important for some steps.

OSX Dock Setup:

I prefer using an automatically hiding Dock but the animation duration drives me crazy. To speed up the Dock Animation execute the following 2 commands.

defaults write com.apple.dock autohide-time-modifier -float 0.25;killall Dock
defaults write com.apple.dock autohide-delay -float 0;killall Dock

HACK Font

A typeface designed for source code

Xcode

xcode download takes long.. so go ahead with homebrew, it will download the xcode command line tools for you

Homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Carthage

brew install carthage

Ruby (rvm)

curl -sSL https://get.rvm.io | bash -s stable --ruby
rvm install ruby-2.4

Bundler

gem install bundler

zsh and oh my zsh

brew install zsh zsh-completions
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# .zshrc
ZSH_THEME="eastwood"

Sublime

You can add a symbolic link to the binary of sublime text, to easily open files and folders from the terminal.

ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl

# usage in terminal:
subl foo.swift

Packages:

  • IDL-Syntax
  • Swift
  • Dockerfile Syntax Highlighting
  • Pretty JSON
  • Gitignore
  • Theme - Spacefunk
  • Tomorrow Color Schemes
# Preferences.sublime-settings
{
    "color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night.tmTheme",
    "draw_white_spaces": "all",
    "font_size": 18,
    "highlight_line": true,
    "ignored_packages":
    [
        "Vintage"
    ],
    "rulers":
    [
        80,
        120
    ],
    "scroll_past_end": true,
    "theme": "Spacefunk (Grey Tuesday).sublime-theme",
    "draw_white_space": "all"
}

Docker

Docker Compose

curl -L https://github.com/docker/compose/releases/download/1.12.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version

Vapor

brew install vapor/tap/vapor