Installation

Quick Install

curl -fsSL https://raw.githubusercontent.com/jona62/mac/main/install.sh | bash

This detects your platform, downloads the latest release binary, and installs to ~/.mac/ with a symlink at ~/.local/bin/mac.

Supported Platforms

PlatformArchitecture
macOSarm64 (Apple Silicon)
macOSx86_64 (Intel)
Linuxx86_64

Updating

Run the install script again. It detects existing installations and updates in place.

Mac also checks for updates on startup (once per 24 hours) and prints a message if a newer version is available.

Build from Source

git clone https://github.com/jona62/mac.git
cd mac
cmake -S . -B build
cmake --build build
./build/mac --version

Requires CMake 3.20+ and a C++23 compiler.

Uninstall

mac --uninstall

Removes ~/.mac/ (binary, assets, stdlib), ~/.local/bin/mac (symlink), and ~/.mac_history (REPL history). Prompts before deleting ~/mac/output/ (your generated files).

File Locations

PathContents
~/.mac/Binary, assets, stdlib
~/.local/bin/macSymlink to binary
~/.mac_historyREPL command history
~/.mac/update_checkUpdate check cache
~/mac/output/Default generated output for bare filenames