Xonsh – A Python-Powered Shell Language and Command Prompt

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 – https://repl.it/@scopatz/xonsh

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.

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.

Divine Okoi is a cybersecurity postgrad with a passion for the open-source community. With 700+ articles covering different topics in IT, you can always trust him to inform you about the coolest tech.

Each tutorial at GeeksMint is created by a team of experienced writers so that it meets our high-quality writing standards.

Got Something to Say? Join the Discussion...