中文说明-点这里
- Development is now continuing on Codeberg, with the GitHub repository becoming a mirror. Issues & pull requests on GitHub will be ignored from now on.
Lumesh - Light-speed Shell and Scripting Language
Write like js, work like Bash, run like light
Lumesh is a modern shell and scripting language, completely rewritten from Dune, designed for high performance and user-friendly experience.
⚑ Why Choose Lumesh?
Performance Comparison
Comparison Item | lume | bash | dash | fish |
---|---|---|---|---|
Speed (million loops) | ***** | *** | **** | * |
Syntax Friendliness | ***** | ** | * | **** |
Error Messages | ***** | * | * | *** |
Error Handling | ***** | * | * | * |
Built-in Libraries | ***** | * | ||
Interactivity | **** | ** | * | ***** |
Size | **** | *** | ***** | ** |
Key Bindings | ☑ | ☑ | ||
Structured Pipelines | ☑ | |||
AI Interaction | ☑ |
⚑ Core Features
⚡ Intuitive Syntax Design
# Syntax like modern programming languages
⚡ Chained Calls
Supports method chaining similar to object-oriented languages:
| )
) )
⚡ Powerful Error Handling
More intelligent error tips, error capture and recovery deeling than traditional shells.
⚡ Diverse Pipeline Operations
| | |> loop_deel # Loop pipeline
data |
Structured pipelines:
|
| ) | )
|> cp
⚡ Rich Built-in Modules
- Collection Operations:
List.reduce, List.map
- File System:
Fs.ls, Fs.read, Fs.write
- String Processing:
String.split, String.join
, regex module, formatting module - Time Operations:
Time.now, Time.format
- Data Conversion: Into, Parse
- Mathematical Calculations: Complete math function library
- Logging: Log module
- UI Operations:
ui.pick, ui.confirm
⚡ Function Decorators
Supports function decorator syntax:
{ }
)
)
⚡ Module import
Supports module import syntax:
AI Integration Support
Built-in local AI assistant, supports command completion and smart suggestions.
⚑ Use Cases
☘ Interactive Shell
Replace traditional shells, providing a modern command-line experience:
# Start interactive shell
☘ Script Automation
#!/usr/bin/env lumesh
# File processing script
| ))
☘ System Management
# System monitoring and management
|
⚑ Quick Start
Installation Methods
Method 1: Download Precompiled Version
Method 2: Compile from Source
Experience Immediately
lume
: Complete interactive shell, supports REPL, auto-completion, syntax highlightinglumesh
: Lightweight script executor, quick startup, minimal dependencies
# Start interactive shell
# Or execute script
Benchmark Testing
![]() |
![]() |
---|
Due to fish being unable to complete one million tasks, we recorded its half-task time.
⚑ Learning Resources
-
Syntax Manual [https://lumesh.codeberg.page/en/syntax]
-
Built-in Function Library [https://lumesh.codeberg.page/en/libs/index]
-
Bash Comparison [https://lumesh.codeberg.page/rv/en.html]
-
Hotkeys [https://lumesh.codeberg.page/en/keys]
⚑ Version History
Current version 0.6.3, continuously updated:
- Decorator support
- IFS mode control
- Performance optimization Completely rewritten since version 0.3.0, focusing on efficiency improvements and syntax extension flexibility.