Skip to content

Instantly share code, notes, and snippets.

@ryexley
Forked from theantichris/new-macos-10.md
Created September 25, 2020 13:10
Show Gist options
  • Save ryexley/ab3154eca2a8879c0d7dade0e94e245a to your computer and use it in GitHub Desktop.
Save ryexley/ab3154eca2a8879c0d7dade0e94e245a to your computer and use it in GitHub Desktop.
Steps for setting up new machines.

New MacOS 10 Setup

Download And Install Apps

  1. Google Chrome
  2. iTerm2
  3. Rectangle
  4. Clipy
  5. Alfred
  6. GitHub CLI

Preview Plugins

  1. brew cask install qlcolorcode
  2. brew cask install qlstephen
  3. brew cask install qlmarkdown
  4. brew cask install quicklook-json
  5. brew cask install qlimagesize
  6. brew cask install qlvideo

System Preferences

  1. Dock > Minimize windows into applicaiton icon
  2. Dock > Automatically hide and show the Dock
  3. Spotlight > disable Allow Spotlight Suggestions in Look Up
  4. Accessibility > Pointer Control > enable Ignore built-in trackpad when mouse or wireless trackpad is present
  5. Accessibility > Pointer Control > Trackpad Options > Enable dragging > without drag lock
  6. Security & Privacy > General > Require password immediately after sleep or screen saver begins
  7. Security & Privacy > General > Advanced > Require an administrator password to access sytem-wide preferences
  8. Security & Privacy > FileVault > Turn On FileVault
  9. Security & Privacy > Firewall > Turn On Firewall
  10. Security & Privacy > Privacy > Analytics & Improvements > turn off all options
  11. Keyboard > Keyboard > Touch Bar shows F1 F2, etc. Keys
  12. Keyboard > Keyboard > Modifier Keys > switch Caps Lock Key and Control Key
  13. Keyboard > Input Sources > disable Show input in menu bar
  14. System Preferences > Trackpad > Tap to click

Finder Preferences

  1. View > Show Path Bar
  2. View > Show Status Bar

Safari Preferences

  1. General > disable Open "safe" files after downloading
  2. Search > disable Include Safari Suggestions

iTerm Preferences

  1. General > Closing > uncheck Confirm closing multiple sessions
  2. General > Closing > uncheck Confirm "Quit iTerm2"
  3. Profiles > add a new profile
    1. Other Actions > Set as Default
    2. Window > Columns > 125
    3. Window > Rows > 35
  4. Keys > Hotkey > check Show/hide all windows with a system-wide hotkey
    • ⌘~
  5. Install Shell Integration
  6. Add the following to .zshrc
    • source ~/.iterm2_shell_integration.zsh

Setup SSH Keys

  1. ssh-keygen -t rsa -b 4096 -C "[email protected]"

  2. eval "$(ssh-agent -s)"

  3. touch ~/.ssh/config

  4. Open ~/.ssh/config and add the following:

    Host *
      AddKeysToAgent yes
      UseKeychain yes
      IdentityFile ~/.ssh/id_rsa
  5. ssh-add -K ~/.ssh/id_rsa

Configure Git

  1. git config --global user.email "[email protected]"
  2. git config --global user.name "Your Name"
  3. git config --global rerere.enabled true
  4. git config --global pull.rebase true
  5. git config --global core.excludesfile ~/.gitignore

Setup GPG Keys

  1. brew install gpg
  2. gpg --full-generate-key
  3. Follow prompts
  4. gpg --list-secret-keys --keyid-format LONG
  5. Copy the key ID
  6. gpg --armor --export {KEY ID} > ./Downloads/gpg.txt
    • Add this key to GitHub
  7. export GPG_TTY=$(tty)
  8. git config --global user.signingkey <PASTE_LONG_KEY_HERE>
  9. git config --global commit.gpgsign true

Homebrew

  1. Install Homebrew
    1. /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
  2. Disable analytics
    1. export HOMEBREW_NO_ANALYTICS=1
    2. brew analytics off
  3. brew doctor
    1. Follow any advice

Fira Code

  1. brew tap homebrew/cask-fonts
  2. brew cask install font-fira-code

ZSH

  1. Install ohmyzshell
    1. sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
  2. Add zsh-autosuggestions
    1. git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
    2. Add zsh-autosuggestions to plugins
  3. Add zsh-syntax-highlighting
    1. git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
    2. Add zsh-syntax-highlighting to plugins
  4. brew install romkatv/powerlevel10k/powerlevel10k
    1. Add the following to .zshrc
      • source /usr/local/opt/powerlevel10k/powerlevel10k.zsh-theme
    2. Restart the terminal

Dotfile

  1. Clone dotfiles
  2. Follow instructions in the README

Node.js

  1. Install nvm
  2. nvm install node to install latest stable version of Node.js

Global NPM Packages

  1. fast-cli

Heroku

  1. brew tap heroku/brew
  2. brew install heroku
  3. heroku autocomplete
  4. printf "$(heroku autocomplete:script zsh)" >> ~/.zshrc; source ~/.zshrc
  5. compaudit -D
    1. Follow any suggestions

Go

  1. brew install golang

New Windows 10 Setup

Apps

  1. Google Chrome
  2. 7-Zip
  3. Git
  4. VS Code
  5. Google Drive
  6. Slack
  7. Discord
  8. Cacher
  9. Insomnia
  10. PowerToys
  11. Windows Terminal
  12. Docker
  13. Steam
  14. GOG Galaxy
  15. Battle.net
  16. NZXT Cam
  17. Logitech Capture
  18. Fira Code
  19. GitHub Command Line

WSL

  1. Install WSL

Docker

  1. Enable Settings > General > Use the WSL 2 based engine
  2. Enable Settings > Resources > Enable integration with my default WSL distro
  3. Enable Settings > Resources > Enable integration with additional distros:

Cap WSL2 Memory

c:/Users/chris/.wslconfig

[wsl2]
memory=6GB

Generate SSH Key

  1. ssh-keygen -t rsa -b 4096 -C "[email protected]"
  2. eval "$(ssh-agent -s)"
  3. ssh-add ~/.ssh/id_rsa

Generate GPG Key

  1. gpg --gen-key
  2. gpg --list-secret-keys --keyid-format LONG
  3. gpg --armor --export <PASTE_LONG_KEY_HERE> > gpg-key.txt
  4. git config --global user.signingkey <PASTE_LONG_KEY_HERE>
  5. git config --global commit.gpgsign true
  6. export GPG_TTY=$(tty)

Install ZSH

  1. sudo apt install zsh
  2. chsh -s /usr/bin/zsh <USERNAME>
  3. Relog into computer
  4. wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
  5. Update your .zshrc file
  6. source ~/.zshrc
  7. Exit and reopen the terminal

Install Fast CLI

Fast CLI

  1. wget https://github.com/ddo/fast/releases/download/TAG/fast_linux_amd64
  2. sudo install fast_linux_amd64 /usr/local/bin/fast

Install Go

From Binary

  1. Download the latest version from https://golang.org/dl/
  2. sudo tar -C /usr/local -xzf <DOWNLOADED_ARCHIVE>
  3. export PATH=$PATH:/usr/local/go/bin
  4. go version to check install

From Apt

  1. sudo add-apt-repository ppa:longsleep/golang-backports
  2. sudo apt update
  3. sudo apt install golang-go
  4. go version to check install

Configure Git

git config --global user.email "[email protected]"
git config --global user.name "Your Name"
git config --global rerere.enabled true

Global Ignore

  1. Create a .gitignore_global file in home directory
  2. git config --global core.excludesfile ~/.gitignore_global

NVM

  1. Download and run script from GitHub
  2. Add the following to .zshrc
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

Yarn

  1. npm install -g yarn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment