Linux Terminals

Xonsh – A Python-Powered Shell Language and Command Prompt

Xonsh Linux Shell Prompt
Written by Martins D. Okoi

Xonsh (pronounced “Konk“,) is a cross-platform, Python-powered, Unix shell language and command prompt designed for the use of experts and novices alike.

The Xonsh language is a Python 3.4+ superset and it features additional shell primitives that make it familiar to working from IPython and Bash.

Xonsh is easily scriptable and it allows you to mix both command prompt and python syntax coupled with a rich standard library, man-page completion, typed variables, and syntax highlighting, among other features.

Try out Xonsh right here in the browser –

Features in Xonsh

  • Free and Open-source
  • Cross-platform: available to use on Mac, GNU/Linux, and Windows
  • Tab completion
  • Syntax highlighting
  • Man-page completion
  • Rich history
  • Typed variables
  • Easily scriptable
  • Sane language
  • Large standard library

Xonsh is significantly different from other shell tools as can be seen in comparison to other command prompts like Bash, zsh, fish, IPython, and plumbum.

Xonsh Comparision

Xonsh Comparision

If you need any help using Xonsh you can refer to its online Guides.

Installing Xonsh on Linux Systems

Xonsh has certain requirements to run including Python v3.4+PLY, and prompt-toolkit (optional).

You can install xonsh on Debian/Ubuntu from the repository with:

$ apt install xonsh

Fedora users can install xonsh from the repository with:

# dnf install xonsh

For other Linux distributions, you can find the installation guide here.

  6 Best Online Linux Bash Editors

As it is with all open-source projects, Xonsh is open to contribution and its source code is available on GitHub.

I don’t know which shell tools and command prompt you enjoy using the most but Xonsh seems to have won the hearts of many users for reasons experts celebrate over.

Are you familiar with Xonsh and do you mind sharing your experience with us? The comments section is down below.

Your Unwavering Support Matters a Lot:

The cost of maintenance is skyrocketing as more readers are coming on board and the ad service that we employ in order to generate revenue is unfortunately no longer sufficient and this is especially due to the increased use of ad-blockers.

We humbly request that you consider disabling your ad-blockers to support us financially or by donating as anything from $1. Your donation(s) will go a long way in supporting FossMint and sister site, TecMint, in running efficiently. Thank you.

Make a Contribution via PayPal

Top Deals

About the author

Martins D. Okoi

Martins Divine Okoi is a graduate of Computer Science with a passion for Linux and the Open Source community. He works as a Graphic Designer, Web Developer, and programmer.