Python Integration
Xonsh allows the use of Python throughout the shell session, enabling powerful scripting, access to Python libraries, and seamless integration with Python code.
Extensible
Due to its foundation in Python, xonsh is highly extensible and customizable, allowing users to create plugins or modify the shell's behavior to suit their needs.
Unified Environment
Xonsh provides a unified environment for both command-line operations and Python scripting, reducing the need to switch contexts and improving workflow efficiency.
Cross-Platform
Xonsh runs on multiple operating systems, including Windows, macOS, and Linux, providing a consistent shell experience across different platforms.
Rich Features
Xonsh offers features like syntax highlighting, auto-completion, and history search, which enhance productivity and make the shell more user-friendly.
(Not sure about the equivalent of shlex.quote, but in the worst case, you can just use "from shlex import quote as q" or something). So yes, there are good alternatives to bash - even Python based. [0] https://xon.sh/. - Source: Hacker News / 27 days ago
> Wondering what others have found to address this. Or if they just stuck with Bash, since it's just not going away anytime soon. If you're familiar with Python, give xonsh (https://xon.sh/) a go. It's a Bash-like shell but the syntax is Python. It has the same ease of writing shell scripts as Bash does, sans the insane language. Been using it since 2018. - Source: Hacker News / 27 days ago
Also, do consider xonsh.[1] It's a Bash-like shell written in Python. It has significant overlap with the awesomeness of fish, and has the advantage of being able to write your shell scripts in a Python dialect. So if you know Python, the mental burden is much lower. On top of that, it's cross platform, since Python is. No WSL needed. I switched to it in 2018 and haven't looked back. Originally it was just because... - Source: Hacker News / 5 months ago
No xonsh? (https://xon.sh/) Seems to hit most of the requirements. Been happily using it since 2018. It's great not to have to learn a whole other language just to do scripting. - Source: Hacker News / 6 months ago
Interesting thought experiment. Reminds me of my cousin's project Xonsh https://xon.sh/. - Source: Hacker News / 8 months ago
If you like this sort of thing, I strongly recommend also checking out the xonsh shell. It's bash-like, but Python based. Works on both Windows and Linux. Has several of the benefits mentioned in this article. It's really nice that I don't need to learn another language for shell scripting - its language is Python, with some extensions to make it less tedious (e.g. Easily executing commands without using... - Source: Hacker News / 8 months ago
Makim extends its functionality beyond conventional script execution by supporting various interpreters and shell languages, facilitating a versatile development environment. While xonsh is the default interpreter - blending the capabilities of Bash and Python for an enriched command-line experience - Makim's architecture allows for seamless integration with other environments. For developers seeking to leverage... - Source: dev.to / 10 months ago
Friends, I'm not saying that tools like zx are not good. I do like to write some scripts using js/ts. I believe pythoners prefer https://xon.sh/ . Perl is also attractive and interesting. Fish is friendly. However, I still believe that posix-shell has its own advantages. The balance among size, code length, and expressiveness. I think the only possible competitors are tcl and perl, maybe lua. - Source: Hacker News / over 1 year ago
Sorry for the hijack, but I've been using xonsh[1] since 2018. It's a shell with Python syntax. If you dislike Bash scripting, and know Python, please consider this! [1] https://xon.sh/. - Source: Hacker News / over 1 year ago
Those of you who use (or used) this as your shell: care to share your experience? It seems a lot less full-featured than https://xon.sh/, but maybe you don't need a lot of bells and whistles for regular usage. I mostly run build, execute, and install commands. I'm somewhat enticed at the possibility of being able to wrap common executables into forms that are typed (like nushell or elvish) and manipulate them in a... - Source: Hacker News / over 1 year ago
In that case, is it even more similar to xonsh? https://xon.sh/. - Source: Hacker News / over 1 year ago
Not to hijack, but also consider xonsh[1]. It's Python based, and all your scripts can be Python (or hybrid-Python). I've been using it for both Windows and Linux for over 5 years. [1] https://xon.sh/. - Source: Hacker News / over 1 year ago
I've been eyeing https://xon.sh/ (haven't written much in it though), as it seems to solve my biggest issue when writing scripts in python - the unwieldiness of calling external programs and piping their results. Source: about 2 years ago
Better than PowerShell, but not bash-wards compatible makes it not a great choice for me. Waiting for Python12 and going to try xonsh again. Python native and bash-wards compatible 🤯. Source: about 2 years ago
Xonsh. It's like having your shell extended with Python. One-liners are a lot like normal shell, but for anything complicated, Bash is not really a sane language. Source: about 2 years ago
Or go with full blown python shell with xonsh. Source: about 2 years ago
Python-powered shell https://xon.sh (open source) has good documentation, well structured modules and continuous delivery approach for releases by using unit testing. I'm wondering how small team cover all use cases during development. The approaches is not so super modern but as a whole it's good example of open source project. Source: about 2 years ago
Have a look at the python shell https://xon.sh/. Source: over 2 years ago
For example, author's first example cat beef.txt | grep "lasagna" | sort -n | uniq is already possible literally as written in Xonsh (a Python-based shell) with a pipeliner plugin https://xon.sh/. - Source: Hacker News / over 2 years ago
There is a python-based shell https://xon.sh with a plugin that allows piping :) https://github.com/anki-code/xontrib-pipeliner. - Source: Hacker News / over 2 years ago
Im not the hard user of VSC and just curious is it working in python-powered https://xon.sh shell? Source: over 2 years ago
Do you know an article comparing the xonsh shell to other products?
Suggest a link to a post with product alternatives.
This is an informative page about the xonsh shell. You can review and discuss the product here. The primary details have not been verified within the last quarter, and they might be outdated. If you think we are missing something, please use the means on this page to comment or suggest changes. All reviews and comments are highly encouranged and appreciated as they help everyone in the community to make an informed choice. Please always be kind and objective when evaluating a product and sharing your opinion.