In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article will explain in detail what Elvish Shell means. Xiaobian thinks it is quite practical, so share it with you for reference. I hope you can gain something after reading this article.
What is Elvish Shell?
Pipelines In Elvish
Elvish is more than just a shell. It is also "an expressive programming language." It has many interesting features, including:
It's written in Go.
Built-in File Manager, inspired by Ranger File Manager (Ctrl + N)
Searchable Command History (Ctrl + R)
History of directories accessed (Ctrl + L)
Powerful pipeline for structured data such as lists, dictionaries, and functions
Contains "a standard set of control structures: if conditional control, for and while loops, and exception handling for tries"
Support for third-party module extensions to Elvish via package manager
BSD two-sentence license
You must be yelling,"Why Elvish? "。Well, according to their website, they chose the current name because:
In Roguelike, elven items are of high quality. They are often referred to as "fairy items." But "elvish" was chosen because it ends with "sh," a long-standing tradition of Unix shells. This rhymes with fish and is one of the shells that influenced Elvish philosophy.
How to install Elvish Shell
Elvish is available in several major distributions.
Please note that the software is still young. The latest version is 0.12. According to the project's GitHub page: "Although it's still before 1.0, it's suitable for most everyday interactions. "
Elvish Control Structures
Debian and Ubuntu
The Elvish package has been introduced into Debian Buster and Ubuntu 17.10. Unfortunately, these packages are outdated and you need to install the latest version using PPA. You need to use the following command:
sudo add-apt-repository ppa:zhsj/elvishsudo apt updatesudo apt install elvishFedora
Elvish does not exist in Fedora's main repository. You need to add FZUG repository to install Evlish. To do this, you need to use the following command:
sudo dnf config-manager --add-repo=http://repo.fdzh.org/FZUG/FZUG.repolsudo dnf install elvishArch
Elvish is available in the Arch user repository.
I'm sure you know how to change Shell in Linux, so you can switch to Elvish to use it after installation.
Thoughts on Elvish Shell
Personally, I have no reason to install Elvish on any system. I can get most of its features by installing a few small command-line programs or using programs already installed.
For example, the Search History Command feature already exists in Bash and works well. If you want to improve the capability of history commands, I recommend installing fzf. Fzf uses fuzzy search, so you don't have to remember the exact command you're looking for. Fzf also allows you to preview and open files.
I think Elvish is fine as a programming language, but I'll stick with Bash shell scripts until Elvish gets more mature.
About "Elvish Shell" this article is shared here, I hope the above content can be of some help to everyone, so that you can learn more knowledge, if you think the article is good, please share it to let more people see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.