A powerful scripting language and a shell with useful interactive features built in
open sourceBSD-2-Clausefree
Elvish is a shell and scripting language that comes as a single statically linked binary for Linux, the BSDs, macOS and Windows. Its scripts use real data structures (lists and maps), functional programming and a parallel each (peach), with no cryptic operators or double quoting; it catches errors such as undefined variables before code runs, and a failing command aborts execution by default. Interactively it has directory and command history navigation, a built-in file manager and completion, and a GitHub Action runs it in CI. It's released under the BSD 2-Clause licence.
Ways to install
Package managers
Problems it solves
- bash scripts are full of quoting bugs and cryptic syntax
- a shell where a failing command stops the script instead of silently carrying on
- write shell scripts with real lists and maps instead of string juggling
- catch a typo in a variable name before my script deletes the wrong directory
- jump back to a directory I visited weeks ago without typing the whole path
- a shell that's one static binary I can drop on a server or a Raspberry Pi
- run commands on several servers in parallel from a shell script
Features
- Lists, maps and functional programming in shell scripts
- peach: parallel each
- Compile-time errors for undefined variables
- Failing commands raise exceptions and abort by default
- Directory history (Ctrl-L) and command history (Ctrl-R) navigation
- Built-in file manager (Ctrl-N)
- Single statically linked binary for Linux, BSDs, macOS and Windows
- GitHub Action setup-elvish for CI
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what Elvish does.
