Skip to main content

Starship cross-shell prompt in xonsh shell.

If you like the idea click ⭐ on the repo and tweet.

Additional features:

  • You can split the prompt to left, right and bottom parts.

Installation

To install use pip:

# You already have Starship installed. Then:
xpip install xontrib-prompt-starship
# or: xpip install -U git+https://github.com/anki-code/xontrib-prompt-starship

Usage

xontrib load prompt_starship

Recommendation

We suggest to use @ character to remember about you're using xonsh syntax:

mkdir -p ~/.config/ && echo @("""
[character]
success_symbol = "[@](bold green)"
error_symbol = "[@](bold red)"
""".strip()) > ~/.config/starship_xonsh.toml

$STARSHIP_CONFIG = '~/.config/starship_xonsh.toml'
xontrib load prompt_starship

Configuration

You can set the different starship configs for left, right and bottom parts of prompt when your shell type is prompt-toolkit:

$XONTRIB_PROMPT_STARSHIP_LEFT_CONFIG = "~/.config/starship_xonsh_left.toml"
$XONTRIB_PROMPT_STARSHIP_RIGHT_CONFIG = "~/.config/starship_xonsh_right.toml"
$XONTRIB_PROMPT_STARSHIP_BOTTOM_CONFIG = "~/.config/starship_xonsh_bottom.toml"
xontrib load prompt_starship

In case of using starship as part of another prompt you can add starship prompt to $PROMPT_FIELDS without replacing the current prompt:

$XONTRIB_PROMPT_STARSHIP_REPLACE_PROMPT = False
xontrib load prompt_starship
print($PROMPT_FIELDS['starship_left']())

Prompt bar with starship

See also:

Prompt bar with starship sections.

Monochrome prompt

See also starship-prompt-mono:

image

Known issues

Credits

Metadata

Release files for xontrib-prompt-starship 0.3.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xontrib-prompt-starship 0.3.8
File Size Uploaded Provenance Actions
xontrib_prompt_starship-0.3.8.tar.gz 4.5 kB Without provenance Details for xontrib_prompt_starship-0.3.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xontrib-prompt-starship 0.3.8
File Interpreter ABI Platform Actions
xontrib_prompt_starship-0.3.8-py3-none-any.whl Python 3 none any Details for xontrib_prompt_starship-0.3.8-py3-none-any.whl

Total release size: 9.1 kB

Release files / xontrib_prompt_starship-0.3.8.tar.gz

Download URL xontrib_prompt_starship-0.3.8.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
299c58a283c55b0a5b8c674ecf096ee100fe06b72ef03e11b1285f120d2494c7
BLAKE2b-256 checksum
How to use checksums
ff364bbbf8590dae84616c8081a54fbbc935c58a4c3e160c62980bed820e2144
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release files / xontrib_prompt_starship-0.3.8-py3-none-any.whl

Download URL xontrib_prompt_starship-0.3.8-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
488b128178923c2174b3929188f68d7ef683edfab7a8860341b6cf04e108c204
BLAKE2b-256 checksum
How to use checksums
4195136f298d1d30fcb1748e160d788585545b142ba0e1b557a4576acaf25043
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Security for xontrib-prompt-starship 0.3.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page