Installation

Quick Install

macOS / Linux:

curl -fsSL https://macstudio.meme/install.sh | bash

Windows (PowerShell):

irm macstudio.meme/install.ps1 | iex

On macOS/Linux this installs to ~/.mac/ with a symlink at ~/.local/bin/mac. On Windows it installs to %USERPROFILE%\.mac\ and adds it to your user PATH.

Supported Platforms

PlatformArchitecture
macOSarm64 (Apple Silicon)
macOSx86_64 (Intel)
Linuxx86_64
Windowsx86_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

Or without the binary installed:

curl -fsSL https://macstudio.meme/uninstall.sh | bash

Removes ~/.mac/ (binary, assets, stdlib), ~/.local/bin/mac (symlink), and ~/.mac_history (REPL history). Your generated output in ~/mac/output/ is kept by default.

To also remove generated output files:

mac --uninstall --purge
# or
curl -fsSL https://macstudio.meme/uninstall.sh | bash -s -- --purge

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