Skip to content

Latest commit

 

History

History
135 lines (84 loc) · 4.6 KB

setup-mac.md

File metadata and controls

135 lines (84 loc) · 4.6 KB

Setup Mac

This page guides you to set up the new machine to usual state.

Developments

Terminal.app

I usually use iTerm2 for developing something but it's not installed at this time, so at first let's use Terminal.app for this set up.

git/dotfiles

The first thing you need to do is to clone this repo into a location of your choosing. For example, if you have a ~/Developer directory where you clone all of your git repos, that's a good choice for this one, too. This repo is setup to not rely on the location of the dotfiles, so you can place it anywhere.

Note If you're on macOS, you'll also need to install the XCode CLI tools before continuing.

xcode-select --install
git clone git@github.com:b4b4r07/dotfiles.git ~/src/github.com/b4b4r07/dotfiles
cd ~/src/github.com/b4b4r07/dotfiles
make install

The make install will create symbolic links from the dotfiles directory into the $HOME directory, allowing for all of the configuration to act as if it were there without being there, making it easier to maintain the dotfiles in isolation.

GitHub

ssh-keygen -t rsa -C "b4b4r07@gmail.com"
cat ~/.ssh/id_rsa.pub | pbcopy
  1. Go to https://github.com/settings/ssh/new
  2. Paste the public key to the text area
  3. Confirm to OK or not: ssh -T git@github.com

$ ssh -T git@github.com
Hi b4b4r07! You've successfully authenticated, but GitHub does not provide shell access.

AFX/Zsh

afx is a CLI packages (tools, shell plugins, etc) manager. Almost all ZSH configurations are also related to the afx settings, so once you run afx install and then relaunch your shell, you can enter the CLI world in the usual state of your shell.

curl -sL https://raw.githubusercontent.com/b4b4r07/afx/HEAD/hack/install | bash
afx install

afx settings: .config/afx

Refs:

Brew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew bundle

Once homebrew is installed, it executes the brew bundle command which will install the packages listed in the Brewfile.

Refs:

Tmux

tmux will be installed via Brew. After installed, run tmux and press prefix + I on tmux to install plugins.

Go

Note This step may become done by brew (Brewfile). If so, no longer needed to run this step.

  1. Go to https://go.dev/dl/
  2. Install via the installer

Refs:

iTerm2

PopClip

Install extensions: https://pilotmoon.com/popclip/extensions/

System preferences

Finder

Before After

System

Guide What to do
Appurtenance
Desktop
Keyboads
Trackpads