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
| Platform | Architecture |
|---|---|
| macOS | arm64 (Apple Silicon) |
| macOS | x86_64 (Intel) |
| Linux | x86_64 |
| Windows | x86_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
| Path | Contents |
|---|---|
~/.mac/ | Binary, assets, stdlib |
~/.local/bin/mac | Symlink to binary |
~/.mac_history | REPL command history |
~/.mac/update_check | Update check cache |
~/mac/output/ | Default generated output for bare filenames |