Featured image of post My 2022 New Macbook Setup

My 2022 New Macbook Setup

開発者向けM2 Macbook Airセットアップ

MacOS setup

System settings

  • Trackpad
    • enable tap to click & set tracking speed fastest
  • Keyboard
    • set key repeat fastest & set delay until repeat to shortest
    • Modifier Keys → set caps lock to control
    • Shortcuts → turn off all checkboxes except Input Sources & Screenshots
    • Shortcuts → Launchpad → Show Launchpad to ctrl + option + z
    • Shortcuts → Keyboard → Move focus to next window to option + tab
  • Displays
    • Resolution → Scaled: More Space
  • Siri
    • Disable Ask Siri
  • Dock & Menu Bar
    • Size: small & Position on screen: left & Automatically hide and show the Dock
    • Battery → Show battery percentage
    • Bluetooth → Show in menu bar
    • Clock → Use a 24-hour clock & Display the time with seconds
  • Desktop & Screen Saver
    • Desktop → Choose picture of nature 🍃 (for my mental health 😂)
  • Screenshot
    • Open Screenshot App → Option → Save screenshots to: Downloads

Finder settings

  • Preferences → Detail → show filename extensions
  • Preferences → Sidebar → check only Application / Homedir / iCloud / Desktop / Download
  • Enable showing dotfiles (just hold Cmd + Shift + . (dot) in a Finder window)
  • Show path bar in footer for easier navigation
1
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true; killall Finder
  • Turn off press and hold for keys
1
defaults write -g ApplePressAndHoldEnabled -bool false

Essential apps setup

Homebrew

1
2
3
4
5
6
7
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

- Run these two commands in your terminal to add Homebrew to your PATH:
    echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/etaro.ito/.zprofile
    eval "$(/opt/homebrew/bin/brew shellenv)"

brew --version

Google Chrome

1
brew install --cask google-chrome
  • Set Chrome to default browser
  • Login to all google account profiles
  • Login to all Chrome extensions
  • Login to all mainly used websites

Google Japanese Input (IME)

  • Download from here & Install
  • Set as default input method
    • System Setting → Keyboard → Input Sources → delete all except Mac OS Default ABC & Google Japanese Input Hiragana
  • Import keymap from file
    • Google Japanese Input Preference → Keymap → Import Keymap from File → select GoogleJapaneseInput/keymap.txt in this repo
  • Google Japanese Input Preference → General → Set “Input from ¥ or backslash key” to Backslash
  • Google Japanese Input Preference → Advanced → set all alphabets / numbers /symbols to halfwidth

Eikana(英かな) (Key Remap Tool)

Paste (Clipboard Manager)

  • Install from https://pasteapp.io/
  • Disable “Enable Sound Effects” in Preferences
  • Set “History Capacity” to 3 days

Magnet (Window Manager)

AltTab (Window Switcher)

1
brew install --cask alt-tab

noTunes (Defender from iTunes)

1
brew install --cask notunes

Terminal setup

Xcode Command Line Tools

1
2
xcode-select --install
xcode-select -v

Git / Github CLI

  • Install git
1
2
3
4
git --version

if not installed:
brew install git
  • Install Github CLI & login to Github
1
2
3
brew install gh

gh auth login
1
2
3
mkdir ~/dev
cd ~/dev
git clone -------------------

Prezto

  • Install prezto with the README.md

dotfiles

  • Clone this repo
1
2
cd ~
git clone git@github.com:etaroid/dotfiles.git
  • Create this repository’s all .** file’s symbolic link to home dir
1
2
cd dotfiles
sh setup.sh
  • Restart terminal

Peco

1
brew install peco

tig

1
brew install tig

Development tools setup

Docker

1
brew install --cask docker
  • Login to Docker Hub
  • use docker/docker-compose.yml in this repo to setup default docker containers
1
2
cd docker
docker compose up -d

iTerm2

1
brew install --cask iterm2
  • Import setting file
    • Preferences → General → Preferences → Load preferences from a custom folder or URL → select ~/dotfiles/iterm2
    • Preferences → Profile → Colors → Color Presets… → Import… → select ~/dotfiles/iterm2/iceberg.itermcolors

IntelliJ IDEA

1
brew install --cask intellij-idea
  • Login to Jetbrains account
  • Sync IDE settings & plugins from Jetbrains account
    • File → Manage IDE Setting → IDE Setting Sync
  • Login to Github account for Github Copilot & Github Pull Request

Webstorm

1
brew install --cask webstorm
  • Login to Jetbrains account
  • Sync IDE settings & plugins from Jetbrains account
    • File → Manage IDE Setting → IDE Setting Sync
  • Login to Github account for Github Copilot & Github Pull Request

Visual Studio Code

1
brew install --cask visual-studio-code
  • Login to Github account

Sublime Text

1
brew install --cask sublime-text

Sequel Ace

1
brew install --cask sequel-ace

Node

  • Install node with fnm
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Install fnm
curl -fsSL https://fnm.vercel.app/install | bash

fnm list-remote
fnm install {version}

fnm list
fnm use {version}

node -v
  • Install yarn
1
brew install yarn

Go

1
2
3
4
5
6
7
8
brew install --HEAD goenv
goenv install -l

goenv install {version}
goenv versions
goenv global {version}

go version

Rust

1
2
3
4
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

rustc --version
cargo --version

Terraform

1
2
3
4
5
6
7
8
brew install tfenv

tfenv list-remote
tfenv install {version}
tfenv list
tfenv use {version}

terraform version

AWS CLI

1
aws configure

Other apps setup

Last updated on Aug 15, 2022 00:00 JST
Built with Hugo
Theme Stack designed by Jimmy