TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Cicada: A Bash-like Unix shell written in Rust

125 点作者 mitnk将近 6 年前

6 条评论

dmix将近 6 年前
Interesting. Having the core terminal&#x2F;language down is a good start. An important part of any terminal will be it&#x27;s support for plugins&#x2F;extensions or otherwise natively replacing them the way Fish tries to do.<p>I&#x27;ve recently started using <a href="https:&#x2F;&#x2F;elv.sh&#x2F;" rel="nofollow">https:&#x2F;&#x2F;elv.sh&#x2F;</a> as my primary terminal after testing it out on&#x2F;off for 2yrs and slowly porting old ZSH aliases&#x2F;scripts into the Elvish language (very similar to Go which it runs on), coming from a decade on ZSH. There&#x27;s a lot of opportunity in this space.<p>ZSH with the full suite of packages with autosuggestions and various other plugins (which I&#x27;ve grown fully dependent on) can get very slow on initial terminal loads, even with tracing and optimization.<p>Smaller tools like ripgrep and exa both written in rust help speed up common terminal commands: <a href="https:&#x2F;&#x2F;github.com&#x2F;ogham&#x2F;exa" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ogham&#x2F;exa</a>
评论 #20390472 未加载
评论 #20395589 未加载
评论 #20389249 未加载
dang将近 6 年前
Discussed in 2017: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=14675431" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=14675431</a>
评论 #20389334 未加载
madmax96将近 6 年前
<p><pre><code> cicada&gt; echo -e &#x27;#!&#x2F;bin&#x2F;sh\necho works&#x27; &gt; &#x2F;bin&#x2F;1 cicada&gt; chmod +x &#x2F;bin&#x2F;1 cicada&gt; 1 1 bash&gt; 1 works cicada&gt; touch a b; echo &quot;$(echo &quot;$(echo &quot;$(ls)&quot;)&quot;)&quot; $(echo $(echo a b bash&gt; echo &quot;$(echo &quot;$(echo &quot;$(ls)&quot;)&quot;)&quot; a b</code></pre>
评论 #20392292 未加载
评论 #20392121 未加载
latexr将近 6 年前
&gt; Math arithmetic directly in the shell![1]<p>Killer feature right there.<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;mitnk&#x2F;cicada#math-arithmetic-directly-in-the-shell" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mitnk&#x2F;cicada#math-arithmetic-directly-in-...</a>
keyle将近 6 年前
I was looking for something actually bringing a net positive... but the FAQ has answered my question<p>&gt; Why another shell?<p>&gt; Because we can. :)<p>It doesn&#x27;t do anything exciting that I can tell.<p>This post would be more useful if it were titled as a &#x27;learn how to write a shell in Rust&#x27;.
johnklos将近 6 年前
Those who do not understand Unix are condemned to reinvent it, poorly. -- Henry Spencer<p>Yay! Non-portable Unix tools! Just what everyone wants.
评论 #20389872 未加载
评论 #20389220 未加载
评论 #20389107 未加载
评论 #20388972 未加载