跳至主要内容

[Mac] 開發環境建構 2025.Jun

重灌電腦最麻煩的就是還原設定檔, 雖然 Mac 有 TimeMachine 可無痛轉移, 而個人癖好還是喜歡重新檢視與安裝設定. 越來越多軟體可以將該軟體配置設定存在雲端, 不但保持多台電腦間同步, 重灌後只需登入帳號就可還原配置,

而大部分 CLI 工具配置檔存放於家目錄下的隱藏檔 (.files), 裝置間的同步, 我是透過 Dropbox. 檔案搬到 Dropbox 資料夾下, 再建立 Symbolic Link, 就可透過 Dropbox 來同步設定檔.

重灌電腦要安裝設定環境, 僅需透過 shell script 安裝軟體與建立 Symbolic Link, 相當無痛.

CLI Environment

Ghostty/iTerm2

Terminals / Ghostty

brew install iterm2 ghostty

zsh/zinit/chezmoi

zinit vs oh-my-zsh 不知看了那邊文章(影片?)後, 已由 oh-my-zsh 轉為擁抱 zinit. Dropbox 同步後, 只需將 ~/.zshrc link 到 Dropbox/dotfiles/zsh/zshrc, 打開終端機就會自動安裝插件和恢復配置了.

ln -s ~/Dropbox/dotfiles/zsh/zshrc ~/.zshrc
  • 整理文章時, ChatGPT 又扔出 chezmoi, 日後花時間了解.

Powerline Font

brew install font-fira-code-nerd-font font-fira-code font-fira-mono font-fira-sans
brew install font-source-code-pro
brew install font-hack-nerd-font

Base Environment

Docker runtime

  1. OrbStack Personal, non-commercial use
  2. Docker Desktop Personal, non-commercial use
  3. Docker CLI on macOS

Brew formulae

brew install git tig gitui git-delta zsh-completion tmux ncdu htop lesspipe sshtrix tldr diff-so-fancy fd ripgrep rclone thefuck ag svn moreutils asdf ansifilter fzf direnv

See Also: Awesome CLI

Program Language

Node.js

Node.js

Volta Get Started

Go

brew install go

IDE & GUI Tools

VSCode

brew install --cask visual-studio-code

GoLand / IntelliJ-IDEA

brew install --cask goland intellij-idea

Others

Fork

Fork - a fast and friendly git client for Mac

brew install fork

Bruno

The Collaboration Platform for API Development.

brew install bruno

See Also: Postman Alternative

Sequel Pro

Sequel Pro is a fast, easy-to-use Mac database management application for working with MySQL databases.

brew install sequel-pro

TablePlus

Modern, Native Tool for Database Management.

brew install tableplus

Redis Desktop Manager

Redis GUI management tool for Windows, Mac OS X, Ubuntu and Debian.

brew install --cask another-redis-desktop-manager

Robo3T

Robo 3T. Free, open-source MongoDB GUI

brew install tableplus

See Also

遺珠

以下是曾為個人熱愛, 但因故越來越少用的軟體. 暫列於此...

  • SourceTree
    Free Mercurial and Git Client for Windows and Mac
  • GitKraken
    The downright luxurious Git client, for Windows, Mac & Linux

Reference

Zsh

Mac Dev