brush is a Bash-compatible command shell that aims to preserve familiar scripting and interactive behaviour while providing a reusable shell engine for other applications.
The shell can read existing Bash startup files, aliases, functions and completion definitions. This allows users to retain much of their existing configuration rather than rewriting it in a new shell language. brush implements conventional shell constructs, including variables, arrays, control structures, functions and pipelines.
For interactive use, brush provides persistent command history and history-based suggestions. Optional syntax highlighting helps users recognise commands and shell constructs while typing. Programmable completion can use existing Bash completion functions, allowing many command-specific completion definitions to be reused.
brush is also designed as a collection of reusable libraries. Its parser converts Bash and POSIX shell source into structured syntax trees, while its execution engine can be embedded in other applications. Developers can register custom built-in commands and integrate shell execution into their own software.
The project maintains compatibility tests that compare its behaviour with Bash. This is particularly useful for evaluating scripts that depend on complex shell expansion, quoting or error-handling behaviour.
This is free and open source software.
Key Features
- Executes Bash-compatible shell commands and scripts.
- Reads familiar Bash startup files and configuration.
- Supports aliases, functions, variables and arrays.
- Provides conventional shell control flow and arithmetic.
- Supports pipelines, redirection and command substitution.
- Offers foreground and background job control.
- Provides persistent command history.
- Suggests commands using previously entered history.
- Supports optional interactive syntax highlighting.
- Reuses existing Bash programmable completion definitions.
- Provides reusable libraries for parsing shell scripts.
- Offers an embeddable shell execution engine.
- Allows custom shell built-in commands to be registered.
- Provides configurable interactive behaviour.
- Supports Bash-compatible error handling and shell options.
- Cross-platform support – runs on Linux and macOS.
Website: github.com/reubeno/brush
Support:
Developer: Reuben Olinsky and contributors
License: MIT License

brush is written in Rust. Learn Rust with our recommended free books and free tutorials.
Related Software
| Shells | |
|---|---|
| zsh | Advanced and programmable command interpreter |
| Nushell | Adopts the Unix philosophy of shells where pipes connect command together |
| fish | Smart and user-friendly command line shell |
| Xonsh | Python-powered, cross-platform shell language and command prompt |
| bash | sh-compatible command language interpreter |
| Murex | Intuitive, typed and content aware shell |
| PowerShell | Cross-platform automation and configuration framework |
| Elvsh | Expressive programming language and a versatile interactive shell |
| Oils | Billed as an upgrade to bash. Written in Python. |
| DASH | POSIX-compliant implementation of sh that aims to be as small as possible |
| sh | Shell parser, formatter, and interpreter |
| tcsh | C shell with file name completion and command line editing |
| mksh | MirBSD Korn shell |
| ksh | Unix shell which was developed by David Korn at Bell Labs |
| brush | POSIX- and bash compatible shell |
| Rash | Language, library, and shell REPL for Racket. |
| ion | Modern system shell that features a simple, yet powerful, syntax |
| Cicada | Bash-like command environment with scripting and job control |
| Yash | Yet another shell |
| oksh | Portable OpenBSD ks |
| es | Extensible shell with higher-order functio |
| dune | A shell by the beach |
| cosh | Concatenative command-line she |
| Marcel | Modern command environment combining Python with Unix pipelines |
| Hilbish | Highly extensible command environment configured with Lua |
| gsh | POSIX-compatible generative shell |
| arsh | Statically typed scripting language with shell-like features |
| Sushi shell | Bash clone shell implemented in Rust |
| loksh | Linux port of OpenBSD's Korn-compatible command interpreter |
| fortsh | Shell written in Fortran |
| hsh | Slightly different take on your shell |
| ReShell | Modern shell |
| rash | Rudimentary shell |
| Dax | Custom Unix shell implementation |
| cjsh | POSIX-oriented command environment with modern interactive features |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.