Skip to main content

Starship prompt in xonsh shell.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xontrib_prompt_starship-0.3.8.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xontrib_prompt_starship-0.3.8-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file xontrib_prompt_starship-0.3.8.tar.gz.

File metadata

  • Download URL: xontrib_prompt_starship-0.3.8.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for xontrib_prompt_starship-0.3.8.tar.gz
Algorithm Hash digest
SHA256 299c58a283c55b0a5b8c674ecf096ee100fe06b72ef03e11b1285f120d2494c7
MD5 dbc471e9b426ad7e6a8e8e79d2f3cb69
BLAKE2b-256 ff364bbbf8590dae84616c8081a54fbbc935c58a4c3e160c62980bed820e2144

See more details on using hashes here.

File details

Details for the file xontrib_prompt_starship-0.3.8-py3-none-any.whl.

File metadata

File hashes

Hashes for xontrib_prompt_starship-0.3.8-py3-none-any.whl
Algorithm Hash digest
SHA256 488b128178923c2174b3929188f68d7ef683edfab7a8860341b6cf04e108c204
MD5 b363edc3e1207f31bf3ab1edfdfd9e36
BLAKE2b-256 4195136f298d1d30fcb1748e160d788585545b142ba0e1b557a4576acaf25043

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page