Installing sbsh on macOS¶
Install sbsh on macOS systems.
Quick Install¶
# Set your architecture (Apple Silicon uses arm64, Intel uses amd64)
export ARCH=arm64 # For Apple Silicon (M1/M2/M3)
# export ARCH=amd64 # For Intel Macs
# Install sbsh
curl -L -o sbsh https://github.com/eminwux/sbsh/releases/download/v0.6.0/sbsh-darwin-${ARCH} && \
chmod +x sbsh && \
sudo install -m 0755 sbsh /usr/local/bin/sbsh && \
sudo ln -f /usr/local/bin/sbsh /usr/local/bin/sb
Verify Installation¶
Autocomplete Setup¶
Bash¶
Add to ~/.bashrc or ~/.bash_profile:
Reload your shell:
Zsh¶
Add to ~/.zshrc:
Reload your shell:
Alternative Installation Methods¶
Homebrew (Coming Soon)¶
Homebrew installation is planned for future releases.
Manual Installation¶
Download and install manually:
# Download (Apple Silicon)
curl -L -o sbsh https://github.com/eminwux/sbsh/releases/download/v0.6.0/sbsh-darwin-arm64
# Or for Intel Macs
# curl -L -o sbsh https://github.com/eminwux/sbsh/releases/download/v0.6.0/sbsh-darwin-amd64
# Make executable
chmod +x sbsh
# Install
sudo mv sbsh /usr/local/bin/sbsh
sudo ln -f /usr/local/bin/sbsh /usr/local/bin/sb
User-local Installation¶
Install to ~/bin (add to PATH):
mkdir -p ~/bin
curl -L -o ~/bin/sbsh https://github.com/eminwux/sbsh/releases/download/v0.6.0/sbsh-darwin-arm64
chmod +x ~/bin/sbsh
ln -f ~/bin/sbsh ~/bin/sb
# Add to PATH in ~/.zshrc
echo 'export PATH="$HOME/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
Troubleshooting¶
Gatekeeper Warnings¶
macOS may show a security warning. To allow the binary:
- Open System Settings → Privacy & Security
- Click "Open Anyway" if prompted
- Or remove the quarantine attribute:
Architecture Mismatch¶
Verify your Mac's architecture:
Use the correct binary:
- Apple Silicon (M1/M2/M3):
sbsh-darwin-arm64 - Intel Macs:
sbsh-darwin-amd64
Command Not Found¶
If sbsh is not found after installation:
- Verify the binary is in your PATH:
which sbsh - Check
/usr/local/binis in PATH:echo $PATH - Reload your shell:
source ~/.zshrcorsource ~/.bash_profile
Next Steps¶
- Getting Started - Your first terminal session
- Prerequisites - System requirements