macOS Overview

macOS is a Unix-based operating system developed by Apple Inc. for its Mac hardware lineup. It combines a polished graphical user interface with a stable Unix foundation, making it popular among developers and general users.

The primary advantage of macOS is its stability, ease of use, and strong ecosystem integration. However, it is limited to Apple hardware and offers less low-level system control compared to Linux distributions.

Pre-Installation

No pre-installation process is required.

Installation

macOS is pre-installed on Apple hardware.

Post Installation

This section describes how to install core development tools on macOS. Configuration is handled separately in System.

Install Homebrew

Install Homebrew (package manager):

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

Update Homebrew:

brew update
brew upgrade

Install Core Packages

brew install git gh fzf bat tree htop btop tmux rsync neofetch

Verify:

git --version
gh --version

GitHub Setup

Authenticate with GitHub:

gh auth login

Development Directory Structure

mkdir -p ~/Code_Dev/{Python,C,C++,OS}

Install Fonts

git clone https://github.com/powerline/fonts.git --depth=1
cd fonts
./install.sh
cd ..
rm -rf fonts

Install Neovim

brew install neovim

Install lazy.nvim:

git clone https://github.com/folke/lazy.nvim \
  ~/.local/share/nvim/lazy/lazy.nvim

Install Node.js and Tree-sitter

brew install node
npm install -g tree-sitter-cli

Install Python

Install Python and development tools:

brew install python pipx

Enable pipx:

pipx ensurepath

Restart your shell after running this command.

Install Poetry:

pipx install poetry

Configure Poetry:

poetry config virtualenvs.in-project true

Note

Avoid modifying the system Python environment directly. Use venv or pipx for isolated environments.

Install C/C++ Toolchain

xcode-select --install
brew install cmake gcc googletest cmocka

Install LaTeX

brew install --cask mactex

Install System Utilities

brew install openssh fail2ban
brew install --cask libreoffice

Warning

Some tools installed via third-party scripts should be reviewed before use.

Update Brew

Packages installed by Brew should be updated every few days via the commands:

brew doctor
brew update
brew upgrade