TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The xonsh shell

226 pointsby jaybosamiyaabout 9 years ago

16 comments

hbridabout 9 years ago
Interesting but I haven't seen any killer feature yet that makes me want to get accustomed to this shell. Command level completion for arguments has existed in zsh, aliases being a sort of dictionary is kind of interesting but not too useful (just some familiar syntactic sugar). Mutliline input isn't new, csh can do it, bash can do it, so can zsh. Admittedly the ability to duck type and evaluate numerical expressions with "let" is kind of nice but nothing too special. Regexes for globbing files might be a new one, certainly a useful one that I'd otherwise be writing special awk or python to handle.
评论 #11673829 未加载
评论 #11674165 未加载
评论 #11675511 未加载
Kurtz79about 9 years ago
To be fair, the flattering comparison table should come with things like "Natively supported by the OS" or "Large community support", for which xonsh would obviously be at a disadvantage compared to other shells.
评论 #11674984 未加载
评论 #11677260 未加载
评论 #11676703 未加载
评论 #11675786 未加载
评论 #11678560 未加载
scrollawayabout 9 years ago
Beautiful. Absolutely beautiful.<p>Also nice to see it respects XDG basedir.<p>I&#x27;ll be trying it out today. I&#x27;ve been using zsh for a very, very long time and it&#x27;s been really hard to get me to switch off it. This looks exciting.<p>My only concern is with ease of installation, especially on eg. debian servers. But that&#x27;s out of the hands of the project :&#x2F;
评论 #11676642 未加载
abstractbeliefsabout 9 years ago
Looks good, but can you take more time in the asciinema showcase? The typed variables section for example goes so fast that I can barely read the results, never mind get into the process behind it!<p>I&#x27;ve made a lot of use of the pause button, but it would be great to just be given a little more time to think.
评论 #11673729 未加载
deathanatosabout 9 years ago
The domain at the end of the video (<a href="http:&#x2F;&#x2F;xonsh.org" rel="nofollow">http:&#x2F;&#x2F;xonsh.org</a>) doesn&#x27;t seem to point to your site (<a href="http:&#x2F;&#x2F;xon.sh" rel="nofollow">http:&#x2F;&#x2F;xon.sh</a>) (and doesn&#x27;t work, either…). Just FYI, that if you share the video, you might want to share the link, too.<p>(or, for xon.sh, it may be time to update the video. I presumed you moved to the fancier domain at some point.)
donnemartinabout 9 years ago
The xonsh Xontrib [1] open pull request sounds handy, allowing devs to extend the functionality of xonsh beyond what is provided by default.<p>As an example, gitsome [2] is powered by xonsh and might have benefitted from Xontrib.<p>I&#x27;ve found that xonsh + prompt-toolkit [3] is a nice combo that helps autocomplete the following:<p>* Shell commands<p>* Files and directories<p>* Environment variables<p>* Man pages<p>* Python (REPL too)<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;scopatz&#x2F;xonsh&#x2F;pull&#x2F;829" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;scopatz&#x2F;xonsh&#x2F;pull&#x2F;829</a><p>[2]: <a href="https:&#x2F;&#x2F;github.com&#x2F;donnemartin&#x2F;gitsome" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;donnemartin&#x2F;gitsome</a><p>[3]: <a href="https:&#x2F;&#x2F;github.com&#x2F;jonathanslenders&#x2F;python-prompt-toolkit" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jonathanslenders&#x2F;python-prompt-toolkit</a>
albertzeyerabout 9 years ago
Earlier discussion: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=9207738" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=9207738</a>
hiimnateabout 9 years ago
The feature set is very interesting, but I tried it out on my machine, and it&#x27;s just too slow for me. I&#x27;m sticking with ZSH.
gkyaabout 9 years ago
I&#x27;m baffled with the effort people put for writing _g_ and not writing _it_. Now I&#x27;m incredibly fond of path completion, but I guess it shouldn&#x27;t be the shell to do that, but the terminal, because the function is generic, i.e. whathever shell one uses, it is beneficial. Emacs&#x2F;Comint does that, and it&#x27;s comfortable and predictable.
评论 #11676812 未加载
gear54rusabout 9 years ago
I&#x27;m not really well-versed in what happens when you replace a shell and then run your programs with it, but can someone ELI5 how does this get away with making &#x27;env variables typed&#x27;.<p>How is the program like &#x27;ls&#x27; going to see a variable that is an array when originally it was a string delimited with &#x27;:&#x27;?
评论 #11673636 未加载
评论 #11673610 未加载
gbajsonabout 9 years ago
Looks really good, it&#x27;s Yet Another Fantastic Shell!<p>I&#x27;d love to use it, really. But as long as it&#x27;s not shipped by default with a popular Linux releases, I will not. My customers, Telcos, don&#x27;t approve any &quot;non standard&quot; software in their server rooms.
thereinabout 9 years ago
Sounds very useful. I&#x27;ll give this a try right now on my personal machine and maybe even use it for some build scripts at work later if I like it.
andrabout 9 years ago
That&#x27;s lovely! Would really love some docs on how developers can extend this!<p>Am I missing something to enable smart autocomplete?<p>$ git c&lt;tab&gt; completes to a folder, starting with c.<p>$ git cl&lt;tab&gt; does nothing.<p>(OS X, installed with pip.)
评论 #11674231 未加载
nirozeabout 9 years ago
It is nice to have new projects in the world.<p>Personally, I just don&#x27;t get what it solves that can&#x27;t be solved with shells and programming languages pre-installed on every machine already. From a personal workstation&#x2F;development box shell (I used GNU Emacs for dev&#x2F;mail&#x2F;usenet for over a decade), I can understand but for servers this may not be appropriate.<p>It is &quot;cool&quot; but I&#x27;d argue that most geeks don&#x27;t even fully understand installed tools on their current machines, so this is &quot;interesting&quot; at best. It was someone&#x27;s project to learn programming?<p>I may be being negative, but &quot;meh&quot;.
c4pt0rabout 9 years ago
Looks very useful, I think it&#x27;s time to replace my zsh.
Shizkaabout 9 years ago
How does this compare to cmder on Windows?
评论 #11674207 未加载