Skip to content

Instantly share code, notes, and snippets.

@rch317
Last active November 10, 2017 03:15
Show Gist options
  • Save rch317/7e96224bc515b206c490de1c5dd6d793 to your computer and use it in GitHub Desktop.
Save rch317/7e96224bc515b206c490de1c5dd6d793 to your computer and use it in GitHub Desktop.
Notes for setting up a new mac

macOS Setup

A collection of tips & tricks I've used to setup my Mac after. Feel free to use whatever you want, or none at all. I'm no export mac user. This is just stuff that works for me.

Preferences

  • Keyboard > Text > Disable "Correct spelling automatically".
  • File Sharing > Off

Security

  • Security and Privacy > Firewall > On
  • Security and Privacy > General > App Store and identified developers
  • Security and Privacy > FireVault > On

You need to send Brian Smrz the FireVault key so that he can recover the Mac should he need to be able to do so.

Before you do anything else; it is highly recommended that you install some basic virtus and malware protection software. We are using Avast and Malware Bytes at ClearObject.

DO NOT PURCHASE LICENSES

### Show the Library folder
chflags nohidden ~/Library


### Show hidden files in the finder
defaults write com.apple.finder AppleShowAllFiles YES

### Show the path bar
defaults write com.apple.finder ShowPathbar -bool true

### Display status bar
defaults write com.apple.finder ShowStatusBar -bool true

Homebrew

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

Mac App Store

brew install mas

Create a Brewfile (remove stuff you dont want)

cutting and pasting the below will destroy any existing Brewfile

cat <<EOF>Brewfile
tap 'caskroom/cask'

brew 'python'
brew 'git'
brew 'npm'

cask 'atom'
cask 'iterm2'
cask 'brackets'
cask 'flux'
cask 'firefox'
cask 'gimp'
cask 'google-chrome'
cask 'spectacle'

mas 'Xcode', id: 497799835
mas 'Slack', id: 803453959
mas 'Alfred', id: 405843582
mas 'Evernote', id: 406056744
mas 'LastPass', id: 926036361
EOF

brew bundle install

Other Applications:

  • Royal TSX
  • Docker
  • VMWare Fusion

Bash Setup

You can find a large variety of dotfiles on git, below is mine: rch317/dotfiles

Once you have cloned the repo, copy them to ${HOME}

git clone git@github.com:rch317/dotfiles.git

GitHub

Config - ~/.gitconfig

[user]
  name = Rob Hough
  email = rob.hough@gmail.com
[credential]
  helper = osxkeychain

SSH

ssh-keygen -t ed25519 -b 2048 -C "rob.hough@clearobject.com"

### Create a config file
cat <<EOF>~/.ssh/config
Host *
  User rch
  AddKeysToAgent yes
  UseKeychain yes
  IdentityFile ~/.ssh/id_ed25519
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment