Mac Studio Setup

I'm sure I had a blog or gist for this back when I did my retina MacBook or 2018 Mac Mini, but I can't find it anymore so here it is, fresh!

MacOS

Dock

Auto hide Dock

  • システム設定 > デスクトップと Dock > Dock を自動的に表示 / 非表示
    • toggle on

Keyboard

  • システム設定 > キーボード > キーボードショットカット > ファンションキー
    • toggle on

Internet accounts

  • login to various accounts

AppStore

Safari

Finder

  1. Open Finder, then to settings
    • Finder > 設定
  2. デスクトップに表示する項目, check the following
    • 外部ディスク
    • 接続中のサーバ
  3. 新規 Finder ウインドウで次の表示
    • select preferred folder (ダウンロード or 書類)
  4. 詳細, uncheck the following
    • ゴミ箱を空にする前に警告を表示
    • iCloud Drive から削除する前に警告を表示
  5. サイドバー, check the following
    • Airdrop
    • アプリケーション
    • ダウンロード
    • $USER folder
    • iCloud Drive
    • 共有
    • デスクトップ
    • 書類
    • ハードディスク
    • 外部ディスク
    • CD, DVD
    • クラウドストレージ
    • Boujour
    • 接続中のサーバ

Homebrew

Run below command in terminal to install Homebrew.

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

$ brew install iterm2 coconutbattery figma miro vlc visual-studio-code google-chrome microsoft-edge firefox tableplus the-unarchiver 1password slack yarn git go openjdk sqlite google-cloud-sdk docker node MonitorControl

iTerm

  1. Install oh-my-zsh

    • sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
  2. vim ~./zshrc and change theme to agnostic

  3. install Powerline fonts for the theme, then update iTerm settings to use it

    • iTerm > Settings > Profiles > Text
    • change Font to Noto Mono for Powerline
    • iTerm > Settings > Profiles > Color
    • change Color Presets to Pastel
  4. Window > Save Window Arrangement > name as Default

  5. iTerm > Settings > General > Startup

    • select Open Default Window Arrangement from dropdown

nvm

  1. install nvm
    • https://github.com/nvm-sh/nvm
    • curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
  2. set preferred version as default
    • nvm alias default VERSION

Yarn

install globally (consider switching to NPM)

$ yarn global add typescript firebase-tools

Dev Env

  1. setup SSH
$ ssh-keygen -t ed25519 -C "[email protected]"

# Start the ssh-agent in the background.
$ eval "$(ssh-agent -s)"

# Update SSH config for macOS
$ vim ~/.ssh/config

Host github.com
  AddKeysToAgent yes
  UseKeychain yes
  IdentityFile ~/.ssh/id_ed25519

# add SSH key to macOS Keychain
$ ssh-add --apple-use-keychain ~/.ssh/id_ed25519
  1. add SSH to GitHub settings
# Copies the contents of the id_ed25519.pub to clipboard
$ pbcopy < ~/.ssh/id_ed25519.pub
  1. setup git
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
git config --global init.defaultBranch main
  1. install docker for mac
  2. Visual Studio Code > bottom left gear icon > turn on settings sync
  3. install GitUp git client
  4. setup projects direction
# create projects folder in root
$ mkdir ~/projects
$ cd $_

# create organisation folder
# then git clone projects into their respective folders
$ mkdir legend\ of\ code
$ cd $_

# repeat for other organisations