Installation Guide
Get Macbrew up and running on your system in just a few minutes.
Prerequisites
Before installing Macbrew, make sure you have the following installed:
- Rust (1.70 or higher) - Install Rust
- Python 3.8+ - Install Python
- Node.js 14+ - Install Node.js
Quick Installation
Using npx (Recommended)
The fastest way to try Macbrew is using npx:
npx macbrew
This will automatically download and run the latest version of Macbrew without installing anything permanently.
Global Installation
For regular use, install Macbrew globally:
npm install -g macbrew
Then run it:
macbrew
Platform-Specific Instructions
Windows
-
Install Rust:
# Download and run rustup-init.exe from https://rustup.rs/ # Or use winget winget install Rust.Rust -
Install Python:
# Download from https://www.python.org/downloads/ # Or use winget winget install Python.Python.3.11 -
Install Node.js:
# Download from https://nodejs.org/ # Or use winget winget install OpenJS.NodeJS -
Install Macbrew:
npm install -g macbrew
macOS
-
Install Rust:
curl --proto "=https" --tlsv1.2 -sSf https://sh.rustup.rs | sh source ~/.cargo/env -
Install Python (if not already installed):
# Using Homebrew brew install python@3.11 # Or download from https://www.python.org/downloads/ -
Install Node.js:
# Using Homebrew brew install node # Or download from https://nodejs.org/ -
Install Macbrew:
npm install -g macbrew
Linux
-
Install Rust:
curl --proto "=https" --tlsv1.2 -sSf https://sh.rustup.rs | sh source ~/.cargo/env -
Install Python:
# Ubuntu/Debian sudo apt update sudo apt install python3 python3-pip # CentOS/RHEL/Fedora sudo dnf install python3 python3-pip # or sudo yum install python3 python3-pip -
Install Node.js:
# Using NodeSource repository (Ubuntu/Debian) curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - sudo apt-get install -y nodejs # CentOS/RHEL/Fedora curl -fsSL https://rpm.nodesource.com/setup_18.x | sudo bash - sudo yum install -y nodejs -
Install Macbrew:
npm install -g macbrew
From Source
If you want to build from source or contribute to the project:
# Clone the repository
git clone https://github.com/Zemerik/Macbrew.git
cd Macbrew
# Install dependencies
npm install
# Build the project
npm run build
# Run in development mode
npm run dev
Verification
After installation, verify that Macbrew is working correctly:
# Check if Macbrew is installed
macbrew --version
# Start Macbrew
macbrew
# You should see the welcome message and prompt
First Run
When you run Macbrew for the first time, it will:
- Build the Rust binary (if not already built)
- Set up configuration in
~/.config/terminal-emulator/ - Install example plugins in
~/.config/terminal-emulator/plugins/ - Show the welcome message
Configuration
Macbrew creates a configuration file at:
- Linux/macOS:
~/.config/terminal-emulator/config.json - Windows:
%APPDATA%\terminal-emulator\config.json
You can customize various settings like:
- Prompt style and colors
- Command history size
- Auto-completion settings
- Plugin configurations
Troubleshooting
Common Issues
“Rust is not installed”
# Install Rust
curl --proto "=https" --tlsv1.2 -sSf https://sh.rustup.rs | sh
source ~/.cargo/env
“Python is not found”
# Make sure Python 3.8+ is installed and in PATH
python3 --version
# or
python --version
“Permission denied”
# On Linux/macOS, you might need to use sudo
sudo npm install -g macbrew
# Or configure npm to use a different directory
npm config set prefix ~/.npm-global
export PATH=~/.npm-global/bin:$PATH
“Build failed”
# Clean and rebuild
npm run clean
npm run build
Getting Help
If you encounter any issues:
- Check the troubleshooting guide
- Search existing issues
- Create a new issue
- Join our Discussions
Next Steps
Now that you have Macbrew installed, check out:
- Getting Started Guide - Learn the basics
- Features Overview - Explore what Macbrew can do
- Command Reference - Browse available commands
- Plugin System - Extend functionality with plugins