perplexity-cli
π§ A simple command-line client for the Perplexity API. Ask questions and receive answers directly from the terminal! πππ
πbash/POSIX-compatible shell implemented in Rust π¦
brush (Bo(u)rn(e) RUsty SHell) is a modern bash- and POSIX- compatible shell written in Rust. Run your existing scripts and .bashrc unchanged -- with syntax highlighting and auto-suggestions built in.
β
Your existing .bashrc just worksβaliases, functions, completions, all of it.
β¨ Syntax highlighting and auto-suggestions built in.
π§ͺ Validated against bash with ~1700 compatibility tests.
π§© Easily embeddable in your Rust apps using brush_core::Shell.
β οΈ Not everything works yet:
selectand some edge cases aren't supported. See the Compatibility Reference for details.
$ cargo binstall brush-shell # using cargo-binstall $ brew install brush # using Homebrew $ pacman -S brush # Arch Linux $ cargo install --locked brush-shell # Build from sources
brush is ready for use as a daily driver. We test every change against bash to keep it that way.
More detailed installation instructions are available below.
bash Compatibility| Feature | Description | |
|---|---|---|
| β | 50+ builtins | echo, declare, read, complete, trap, ulimit, ... |
| β | Full expansions | brace, parameter, arithmetic, command/process substitution, globs, extglob, globstar |
| β | Control flow | if/for/while/until/case, &&/||, subshells, pipelines, etc. |
| β | Redirection | here docs, here strings, fd duplication, process substitution redirects |
| β | Arrays & variables | indexed/associative arrays, dynamic variables, standard well-known variables, etc. |
| β | Programmable completion | Works with bash-completion out of the box |
| β | Job control | background jobs, suspend/resume, fg/bg/jobs |
| π· | Traps & options | DEBUG/ERR/EXIT traps work; signal traps and options in progress |
| Feature | Description | |
|---|---|---|
| β | Syntax highlighting | Real-time as you type (reedline) |
| β | Auto-suggestions | History-based hints as you type (reedline) |
| β | Rich prompts | PS1/PROMPT_COMMAND, right prompts, starship compatible |
| β | TOML config | ~/.config/brush/config.toml for persistent settings |
| π§ͺ | Extras | fzf/atuin support, zsh-style precmd/preexec hooks (experimental), VS Code terminal integration |
When you run brush, it should look exactly as bash does on your system: it processes your .bashrc and
other standard configuration. If you'd like to distinguish the look of brush from the other shells
on your system, you may author a ~/.brushrc file.
Homebrew users can install using the brush formula:
brew install brush
Arch Linux users can install brush from the official extra repository:
pacman -S brush
MSYS2 users can install brush from the repository:
pacman -S mingw-w64-ucrt-x86_64-brush # or mingw-w64-clang-x86_64-brush or mingw-w64-clang-aarch64-brush
You may use cargo binstall to install pre-built brush binaries. Once you've installed cargo-binstall you can run:
cargo binstall brush-shell
We publish prebuilt binaries of brush for Linux (x86_64, aarch64) and macOS (aarch64) to GitHub for official releases. You can manually download and extract the brush binary from one of the archives published there, or otherwise use the GitHub CLI to download it, e.g.:
gh release download --repo reubeno/brush --pattern "brush-x86_64-unknown-linux-gnu.*"
After downloading the archive for your platform, you may verify its authenticity using the GitHub CLI, e.g.:
gh attestation verify brush-x86_64-unknown-linux-gnu.tar.gz --repo reubeno/brush
If you are a Nix user, you can use the registered version:
nix run 'github:NixOS/nixpkgs/nixpkgs-unstable#brush' -- --version
To build from sources, first install a working (and recent) rust toolchain; we recommend installing it via rustup. Then run:
cargo install --locked brush-shell
This project started out of curiosity and a desire to learnβwe're keeping that attitude. If something doesn't work the way you'd expect, let us know!
Other POSIX-ish shells implemented in non-C/C++ languages:
nushell β modern Rust shell (provides reedline)fish β user-friendly shell (Rust port in 4.0)Oils β bash-compatible with new Oil languagemvdan/sh β Go implementationrusty_bash β another Rust bash-like shellThis project relies on many excellent OSS crates:
reedline β readline-like input and interactive featuresclap β command-line parsingfancy-regex β regex supporttokio β async runtimenix β Unix/POSIX APIscriterion.rs β benchmarkingbash-completion β completion test suiteLicensed under the MIT license.
more like this
π§ A simple command-line client for the Perplexity API. Ask questions and receive answers directly from the terminal! πππ
TachiSnap β Pixel Snapper for animation pixel artists. Rust + WebAssembly client-side tool for cleaning up AI-generatedβ¦
Pathfinding library for calculating all node pairs' shortest paths in an unweighted undirected graph.
search projects, people, and tags