Skip to content

Instantly share code, notes, and snippets.

@GrantSmithDoddle
Last active November 17, 2020 15:34
Show Gist options
  • Save GrantSmithDoddle/def61359c00c35c8d4a571b149287bb3 to your computer and use it in GitHub Desktop.
Save GrantSmithDoddle/def61359c00c35c8d4a571b149287bb3 to your computer and use it in GitHub Desktop.
Personal preferences for Mac setup

My Mac setup

This is my setup process covering the projects I tend to work on most regularly. This lately I mostly develop Eleventy, Perch Runway, WordPress and Statamic. Although we have dropped Perch Runway due to the lack of support from the developers in favour of Statamic. Perch sites are still supported though.

The optional installs listed are my preferences, i.e. If your running WordPress you will need something to run a local server, I use Mamp Pro, thus it's a optional, there are various ways to run local servers, this is one method.

Summary

Install HomeBrew
Install Iterm 2
Install Git
Mamp Pro
Laverel Valet
Visual Studio Code
Panic Transmit
Termius SSH client
Browser Firefox Dev

XCode from App Store

HomeBrew

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

Git

Installing and setting up Git involes the following;

  1. Install Git using Homebrew
  2. Create a SSH key
  3. Set your identity for your global Git settings

The above steps are documented on my Git User Guide

Composer

A dependency manager for PHP.

  1. Copy the below into a terminal and run.
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"    
php -r "if (hash_file('sha384', 'composer-setup.php') === '795f976fe0ebd8b75f26a6dd68f78fd3453ce79f32ecb33e7fd087d39bfeb978342fb73ac986cd4f54edd0dc902601dc') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"  
php composer-setup.php
php -r "unlink('composer-setup.php');"
  1. Move composer to Global
mv composer.phar /usr/local/bin/composer

Node

Node JS

Optional development installs

Mamp Pro

https://www.mamp.info/en/downloads/

# Preferences

  Ports / Set server ports to Mamp Pro

Install Iterm 2

I really like this terminal due to flexibility.

$ brew cask install iterm2

Basic setup, these are just my preferences.

# Appearance
  Theme - Minimal
  
# Profile
  Foreground colour #b5d567
  Font size 17px
  Keys / Presets / Natural text editing

Applications

Visual Studio Code

$ brew cask install visual-studio-code

Themes and extensions are synced with my GitHub account.

Launching from the command line

You can also run VS Code from the terminal by typing 'code' after adding it to the path:

Launch VS Code.
Open the Command Palette (⇧⌘P) and type 'shell command' to find the Shell Command: Install 'code' command in PATH command.

Panic Transmit

https://www.panic.com/transmit/

Sync data across devices, big time saver.

Termius SSH client

https://www.termius.com

Great appliction which saves keys, snippets and securely sync data across devices, big time saver for working on live web servers.

Browser Firefox Dev

https://www.mozilla.org/en-US/firefox/developer/

Spectacle

Window manager, very handy. Not being developed any more, but still works

$ brew cask install spectacle

Alfred

$ brew cask install alfred
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment