Table of Contents
- Step 1: check for system updates
- Step 2: install Homebrew and Homebrew-Cask
- Step 3: install iTerm2
- Step 4: install the Fish shell
- Step 5: install basic packages using
brew
andbrew cask
- Step 6: prepare the
Workspace
directory - Step 7: set up Python and related dependencies
- Step 8: set up Ruby and related dependencies
- Step 9: set up NodeJS and related dependencies
- Step 10: set up Git
- Step 11: set up PostgreSQL
Go to: Apple Icon -> About this Mac -> Software updates
Homebrew is a package manager for macOS. Homebrew-Cask extends Homebrew and brings support for packages allowing to install macOS applications and large binaries.
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew tap homebrew/cask
$ brew cask install iterm2
Preference modifications:
- Go to iTerm2 -> Preferences -> General -> Closing and uncheck Confirm "Quit iTerm2 (Cmd Q)" command under the section Closing.
- Go to iTerm2 -> Preferences -> Profiles -> Default -> General and check Reuse previous session's directory 13pt Menlo Regular
- Go to iTerm2 -> Preferences -> Profiles -> Default -> Text and ensure that font is set to 13pt Menlo Regular
- Download and install an iTerm theme (https://github.com/mbadolato/iTerm2-Color-Schemes)
$ brew install fish
$ curl -L https://get.oh-my.fish | fish
$ echo "/usr/local/bin/fish" | sudo tee -a /etc/shells
$ chsh -s /usr/local/bin/fish
$ brew install gdbm gettext gnutls go gnupg iproute2mac jpeg jpegoptim libgcrypt libffi libksba \
libtasn1 libusb nano ncurses openssl sqlite wget
$ brew cask install firefox gimp google-chrome spotify vlc
$ mkdir ~/Workspace
$ brew install python python3
$ pip install cookiecutter cryptography Pillow pipenv virtualenvwrapper
$ mkdir ~/.virtualenvs
$ brew install rbenv rbenv-default-gems ruby-build
$ rbenv init - | source
$ curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bash
$ echo bundler >> ~/.rbenv/default-gems
$ CFLAGS=-O3 rbenv install 2.5.3
$ rbenv global 2.5.3
$ gem install pry rails
$ brew install node
$ npm install -g eslint npm-check-updates
$ brew install git
$ brew install postgresql
$ brew services start postgresql
$ createdb (whoami)
$ psql