HACKER Q&A
📣 actinium226

Does anyone use xonsh shell?


https://xon.sh/

Looks pretty cool. I like that you can do basic arithmetic in the shell, feels like something every shell should be able to do out of the box.

Anybody using it as their daily driver? Any gotchas?


  👤 yci Accepted Answer ✓
Xonsh is my shell on Mac around 4 years. Past year it has a lot of improvements and the infrastructure of extensions is grow as well as Python becomes faster (3.11 release).

At this time Xonsh can't replace bash/zsh completely because of subrpocess modules in Python are not pretty well developed (granular process management is required). But for daily usage as an interactive shell and scripting the xonsh shell is pretty cool and useful for Python developers, devops, data scientists and other users who can just read the documentation carefully.

I highly recommend start diving into xonsh from the awesome xonsh cheatsheet on Github - https://github.com/anki-code/xonsh-cheatsheet


👤 viraptor
> I like that you can do basic arithmetic in the shell

You can do that with $(( ... ))

    echo $(( 2 + 1 ))
    3

👤 gigatexal
I don’t daily it but I use it from time to time.