Elk Shell

1mos agoupdate 2 0 0

Elk is an experimental shell language that aims to seamlessly combine the syntax of a shell language like bash with the syntax of a general-purpose language like Python. ...

Collection time:
2025-09-29
Elk ShellElk Shell

Elk is an experimental shell language that aims to seamlessly combine the syntax of a shell language like bash with the syntax of a general-purpose language like Python. Bash is great for executing programs and handling files, but can be quite limiting and tedious to use when it comes to dealing with different data types and performing complex operations. Elk was built with both of these scenarios in mind.Language features:Variables of different data types without a prefix (like $)User-defined functionsConvenient syntax for program invocationPipes for both program and function callsModule system that supports circular importsStandard library with operations that are common in general-purpose languages such as string operations or date/time handlingControl flow (if, for, while, etc.) with a clean familiar syntaxCommon operations (like arithmetic operations) that can be done anywhere, unlike in bashUX features:Commands preceded by $: are evaluated as bash, making it easy to paste bash commands into the shell when necessaryCustom completionsSemantic highlighting (in the command line shell, Neovim and Visual Studio Code)Hints (history, file names)

data statistics

Relevant Navigation