Linux command
elvish 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start Elvish shell
elvish
Run Elvish script
elvish [script.elv]
Run command string
elvish -c "[echo hello]"
Start with specific
elvish --rc [config.elv]
说明
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.
参数
- -c _CODE_
- Execute command string.
- --rc _FILE_
- Configuration file.
- --norc
- Don't load rc file.
- --help
- Display help information.
FAQ
What is the elvish command used for?
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.
How do I run a basic elvish example?
Run `elvish` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -c _CODE_ do in elvish?
Execute command string.