Mac 開發環境建置 2022


內建工具

Xcode

  1. 到 App Store 下載
  2. 記得要打開 Xcode,並且同意服務條款

調整滑鼠速度

  1. 查看滑鼠速度 defaults read -g com.apple.mouse.scaling
  2. 設定滑鼠速度 defaults write -g com.apple.mouse.scaling 7

套件 & 指令

zsh

  1. 官網網站
  2. 安裝指令
    sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
  3. 修改佈景主題
    vim ~/.zshrc

Homebrew

  1. 官網網站
  2. 安裝指令
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  3. 配置 .zshrc 檔案
    • echo ‘eval “$(/opt/homebrew/bin/brew shellenv)”’ >> /Users/tinghsuan/.zprofile
    • eval “$(/opt/homebrew/bin/brew shellenv)”
  4. 更新指令
    brew update && brew upgrade

nvm

  1. 官方網站
  2. 安裝指令
    brew install nvm
  3. 列出所有版本
    nvm ls-remote
  4. 安裝最新的 TLS 版本
    nvm install v16.16.0
  5. 新增指令到 ~/.zshrc 檔案
    1
    2
    3
    export NVM_DIR="$HOME/.nvm"
    [ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh" # This loads nvm
    [ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion

Git

  1. 安裝指令
    brew update && brew install git
  2. 設定全域 username 和 email
    git config --global user.name "TingSyuanWang"
    git config --global user.email "vincent@fishboneapps.com"

Hexo (部落格套件)

npm install -g hexo-cli

Golang

brew install go

doctl (DigitalOcean Command Line)

brew install doctl

k9s (Visualized Kubernetes)

brew install derailed/k9s/k9s

helm

brew install helm

skaffold

brew install skaffold

velero (kubernetes volume backup tool)

brew install velero

bat (A cat clone with wings)

brew install bat

watch (monitor command)

brew install watch

composer (php package manager)

brew install composer

Vagrant & Virtualbox (M1 is not working)

brew install --cask virtualbox
brew install vagrant

生產力工具

Google Chrome

brew install --cask google-chrome

Tor browser

brew install --cask tor-browser

Dropbox

  1. 官方網站

Stats - MacOs MenuBar

  1. 官方網站
  2. brew install --cask stats

PhpStorm - Jetbrains IDE for PHP

brew install --cask phpstorm

WebStorm - Jetbrains IDE for JavaScript

brew install --cask webstorm

IntelliJ IDEA Ultimate - Jetbrains IDE for Java (and others)

brew install --cask intellij-idea

Goland - Jetbrains IDE for Golang

brew install --cask goland

PyCharm - Jetbrains IDE for Python

brew install --cask pycharm

DataGrip

brew install --cask datagrip

Zoom

brew install --cask zoom

Visual Studio Code

  1. brew install --cask visual-studio-code
  2. 常用套件設定:
    • Material Icon Theme
  3. 打開自動存檔 File => Auto Save
  4. 字體放大 Code => Preferences => Setting => “editor.fontSize”: 16
  5. 修改佈景主題 Command+Shift+P => theme => Solarized Light

Telegram

brew install --cask telegram

Postman

brew install --cask postman

滴答清單

brew install --cask ticktick

Docker

  1. 官方網站下載
  2. Settings -> Kubernetes -> Enable Kubernetes

Notion

brew install --cask notion

Appcleaner

brew install --cask appcleaner

Alfred

brew install --cask alfred

Spotify

brew install --cask spotify

Microsoft Remote Desktop

brew install --cask microsoft-remote-desktop

Obsidian

brew install --cask obsidian

Mendeley (Reference tool)

brew install --cask mendeley

Medis - Visualized Redis

brew install --cask medis

Share