LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

elvish

Expressive shell with modern programming features

TLDR

Start Elvish shell
$ elvish
copy
Run Elvish script
$ elvish [script.elv]
copy
Run command string
$ elvish -c "[echo hello]"
copy
Start with specific config
$ elvish --rc [config.elv]
copy

SYNOPSIS

elvish [options] [script] [args]

DESCRIPTION

Elvish is an expressive programming language and a powerful shell for Unix-like systems. It combines shell features with a modern programming language including namespaces, lambdas, and structured data.The shell offers pipelines that pass structured data (not just strings), built-in file manager (Ctrl-N), and comprehensive history with directory history (Ctrl-L). Its syntax is cleaner than traditional shells.Elvish provides real-time syntax highlighting, intelligent completions, and a consistent programming model for both interactive use and scripting.

PARAMETERS

SCRIPT

Script file to execute.
-c CODE
Execute command string.
--rc FILE
Configuration file.
--norc
Don't load rc file.
-i
Force interactive mode even when input is not a terminal.
--compileonly
Parse and compile the code but do not execute it, reporting any errors.
--json
Print output of --compileonly as JSON.
--version
Print the Elvish version and exit.
--help
Display help information.

CONFIGURATION

~/.config/elvish/rc.elv or ~/.elvish/rc.elv

Main configuration file loaded on shell startup.
~/.config/elvish/lib/
Directory for Elvish modules and libraries.

INSTALL

sudo apt install elvish
copy
sudo dnf install elvish
copy
sudo pacman -S elvish
copy
sudo apk add elvish
copy
brew install elvish
copy
nix profile install nixpkgs#elvish
copy

CAVEATS

Not POSIX-compatible. Scripts not portable to bash/zsh. Smaller community than mainstream shells. Some traditional shell patterns don't work.

HISTORY

Elvish was created by Qi Xiao starting around 2014 as a shell designed from scratch with modern language features rather than POSIX compatibility as the primary goal.

SEE ALSO

bash(1), zsh(1), fish(1), nushell(1)

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid