Skip to content

Latest commit

 

History

History
124 lines (81 loc) · 4.18 KB

README.md

File metadata and controls

124 lines (81 loc) · 4.18 KB

Anthony's Dotfiles

This repository borrows heavily from Dries Vints' dotfiles.

Before you re-install

Checkout the checklist at https://github.com/driesvints/dotfiles#before-you-re-install

Setting up your Mac

If you did all of the above you may now follow these install instructions to setup a new Mac.

  1. Update macOS to the latest version with the App Store

  2. You can now use 1Password to configure your SSH Key and Signing or Generate a new public and private SSH key by running:

    curl https://raw.githubusercontent.com/driesvints/dotfiles/HEAD/ssh.sh | sh -s "<your-email-address>"
  3. Clone this repo to ~/.dotfiles with:

    git clone [email protected]:driftingly/dotfiles.git ~/.dotfiles
  4. Run ~/.dotfiles/fresh.sh to start the installation

  5. After mackup is synced with your cloud storage (check local icloud is synced), restore preferences by running mackup restore

  6. Restart your computer to finalize the process

Other settings

iTerm

Natural text editing: https://twitter.com/ericlbarnes/status/1415049563933757441?s=21

Other Applications

https://laravelshift.com/workbench

Homebrew

Homebrew is "the missing package manage for macOS" which lets you install OSS. I use it for installing and managing much of the software needed for web development.

This tutorial is a good place to start if you are new to Homebrew.

Terminology

  • formula: Homebrew package definition built from upstream sources
  • cask: Homebrew package definition that installs macOS native applications
  • keg: installation destination directory of a given formula version e.g. /usr/local/Cellar/foo/0.1
  • rack: directory containing one or more versioned kegs e.g. /usr/local/Cellar/foo
  • keg-only: a formula is keg-only if it is not symlinked into Homebrew’s prefix (e.g. /usr/local)
  • cellar: directory containing one or more named racks e.g. /usr/local/Cellar
  • Caskroom: directory containing one or more named casks e.g. /usr/local/Caskroom
  • external command: brew subcommand defined outside of the Homebrew/brew GitHub repository
  • tap: directory (and usually Git repository) of formulae, casks and/or external commands
  • bottle: pre-built keg poured into the cellar/rack instead of building from upstream sources

So, tap = repository, cellar = local install location, formula = software package.

Commands

For the full command list, see the COMMANDS section of the docs.

Installing formulae (software packages):

brew install <formula>
# Node example
brew install node

Uninstalling:

brew uninstall <formula>

List all installed formulae (software packages) and casts (native applications):

brew list

Tap a formula repository (usually a git repository), if no arguments are provided, list all installed taps:

brew tap

By default, Homebrew assumes that you are looking for a repository on Github. The convention for tap names is <user>/<repo>.

To actually add new taps, use one of the following commands:

brew tap <user>/<repo>

Fetch the newest version of Homebrew and all formulae from GitHub:

brew update

Homebrew will typically keep itself up-to-date when you run other brew commands, but calling this is still a good practice.

Upgrade outdated casks and outdated, unpinned formulae using the same options they were originally installed with, plus any appended brew formula options. If cask or formula are specified, upgrade only the given cask or formula kegs (unless they are pinned; see pin, unpin).

Typically you want to update beforehand.

brew update && brew upgrade

To remove old versions of packages and free up space, you can run:

brew cleanup