AppBreakup
xonsh logo

xonsh

Python-powered shell whose language is a superset of Python 3.

Verified facts
3 of 3
Alternatives ranked
4
Approved reviews
0
Visits sent from here
0

About xonsh

xonsh is a cross-platform shell in which you can mix ordinary shell commands with Python code on the same line. Its language is a superset of Python 3, so variables, loops, functions and any Python library are available directly, while commands like ls, git or grep run as they would in bash, with ways to capture their output into Python values. It has tab completion, history, a customisable prompt and an extension system called xontribs for features like autosuggestions, fzf integration and virtual environment handling. xonsh runs on Linux, macOS, Windows, BSD and even Android, and it is free and open source under a BSD-style licence. It appeals strongly to Python developers and data scientists. It starts more slowly than traditional shells, its hybrid syntax has edge cases where shell and Python parsing conflict, and bash scripts do not run unchanged.

Best for: Python developers who want to script their shell in Python.

Pros and cons

What works

  • Full Python available at the prompt
  • Runs on Linux, macOS and Windows
  • Extensions add autosuggestions and more

Why people leave

  • Slower startup than bash or zsh
  • Mixed syntax has confusing edge cases
  • Bash scripts do not run unchanged

Top xonsh alternatives

See all 4
  1. 1Nushell logo
    Nushell

    Modern shell built around structured data, without Python.

    66.5
  2. 2fish logo
    fish

    Friendly interactive shell with fast startup.

    62.6
  3. 3PowerShell logo
    PowerShell

    Object pipelines and a big module ecosystem across platforms.

    59.6
  4. 4Zsh logo
    Zsh

    Stays compatible with bash scripts.

    57.2

Why people left xonsh

In reviewers' own words, from reviews of the apps they moved to. These are their opinions, not ours.

No switching stories yet. If you moved away from xonsh, review the app you switched to and tell us why.

Reviews

No approved reviews yet. How we verify reviewers

Write a review of xonsh
Your rating of xonsh

Never shown publicly. A work email helps us verify you.

What did you use it for, and what was good or bad? At least 40 characters.

A GitHub username, your company domain, or say you can send a screenshot. Verified reviews count more.

By submitting, you confirm you're at least 16 and agree to our terms. Your name, rating, review and the date are published; your email isn't. See our privacy policy.

xonsh: common questions

Is xonsh free?

Yes. xonsh is free, open-source software.

Is xonsh open source?

Yes. The source code is on GitHub at xonsh/xonsh.

What platforms does xonsh run on?

xonsh is available for Linux, macOS and Windows.

What are the best alternatives to xonsh?

The highest-ranked xonsh alternatives right now are Nushell, fish and PowerShell. See the full ranked list for pricing, platforms and verified facts.

See all 4 xonsh alternatives