mac-setup icon indicating copy to clipboard operation
mac-setup copied to clipboard

Setup script for a new macOS machine. Includes UNIX tools, latest Ruby and Elixir, software and sane defaults.

macOS Setup

Setup script for a new macOS machine. Includes UNIX tools, latest Ruby and Elixir, software and sane defaults.

  • UNIX: git, openssl, tmux, vim, zsh, htop, tree, watch, wget.
  • Software: Flux, Spotify, VLC.
  • Ruby: with rbenv, latest Ruby version through ruby-build, node and imagemagick/qt.
  • Elixir: Erlang, kiex and latest Elixir version.
  • Databases: Postgres and Redis.

System settings:

Enabling three-finger drag ...
Enabling dark mode ...
Unhiding Library in Finder ...
Setting Default Finder Location to Home Folder ...
Enabling iOS charging sound when MagSafe is connected ...
Disabling autocorrect ...
Disabling Sound Effects on Boot ...
Enabling Firewall ...
Setting screensaver to lock immediately ...
Starting locate database building service ...
Changing screenshots directory to ~/Screenshots ...

It also creates a sourced ~/.aliases file with the following aliases:

alias gi="git init"
alias ga="git add"
alias gc="git commit"
alias gp="git push"
alias update="brew update && brew upgrade && gem update"
alias ip="dig +short myip.opendns.com @resolver1.opendns.com"

Usage

./mac.sh