Installation
There are several ways to install Rash depending on your platform and preferences.
Using cargo (Recommended)
The easiest way to install Rash is from crates.io:
cargo install bashrs
This will install both the bashrs
and rash
commands (they are aliases).
Verify Installation
bashrs --version
You should see output like:
bashrs 6.0.0
From Source
If you want the latest development version:
git clone https://github.com/paiml/bashrs.git
cd bashrs
cargo build --release
sudo cp target/release/bashrs /usr/local/bin/
Platform-Specific Installation
macOS
Using Homebrew (coming soon):
brew install bashrs # Not yet available
For now, use cargo install bashrs
.
Linux
Debian/Ubuntu (coming soon)
wget https://github.com/paiml/bashrs/releases/download/v6.0.0/bashrs_6.0.0_amd64.deb
sudo dpkg -i bashrs_6.0.0_amd64.deb
Arch Linux (coming soon)
yay -S bashrs
For now, use cargo install bashrs
.
Windows
Using WSL (Windows Subsystem for Linux):
Inside WSL
cargo install bashrs
Requirements
- Rust 1.70+ (if building from source)
- Linux, macOS, or WSL on Windows
Optional Dependencies
For full functionality, consider installing:
- shellcheck: For POSIX compliance verification
macOS brew install shellcheck Ubuntu/Debian sudo apt-get install shellcheck Arch sudo pacman -S shellcheck
Next Steps
Now that you have Rash installed, let's explore the Quick Start guide!