7 unstable releases (3 breaking)

Uses new Rust 2024

0.4.1 Jun 24, 2025
0.4.0 Jun 19, 2025
0.3.2 Apr 6, 2025
0.3.1 Mar 16, 2025
0.1.0 Feb 26, 2025

#659 in Command line utilities

Download history 3/week @ 2025-03-29 161/week @ 2025-04-05 24/week @ 2025-04-12 19/week @ 2025-04-19 19/week @ 2025-04-26 42/week @ 2025-05-03 36/week @ 2025-05-10 16/week @ 2025-05-17 22/week @ 2025-05-24 18/week @ 2025-05-31 17/week @ 2025-06-07 127/week @ 2025-06-14 199/week @ 2025-06-21 64/week @ 2025-06-28 55/week @ 2025-07-05 20/week @ 2025-07-12

376 downloads per month

MIT license

53KB
1.5K SLoC

jj-starship

starship plugin for jj

Features

  • show bookmarks in you current commits history and how many commits you are ahead of them.
    • filter bookmarks by name.
    • filter bookmarks by distance to current commit.
    • limit number of bookmarks that will be printed.
    • overwrite bookmark filter per workspace.
  • show current commit text.
  • show current commit state (Conflict, Divergent, Hidden).
  • show current commit metrics (changed files, insertions, deletions).
    • define a custom template for how these changes should be presented.
  • print in colors.
  • customize settings via config file.
  • print a default config file.
  • print the path to the default config file path.
  • set custom config location via command line or environment args.

Installation

From Source

  cargo install starship-jj --locked

Usage

  1. Enable the plugin in you starship.toml
format="""
...
${custom.jj}\
...
"""

#...

[custom.jj]
command = "prompt"
format = "$output"
ignore_timeout = true
shell = ["starship-jj", "--ignore-working-copy", "starship"]
use_stdin = false
when = true
  1. Configure what you want to see

starship-jj will load a configuration toml file either from the location provided via the --starship-config argument or from you OSs default config dir (Linus: "$XDG_CONFIG_DIR/starship-jj/starship-jj.toml" Windows: "%APPDATA%/starship-jj/starship-jj.toml").

If no config file exist starship-jj will use some sane default values.

You can see the default config location by using starship-jj starship config path.

You can also print the default configuration using starship-jj starship config default

The Repository also contains a starship-jj.toml file with all possible keys and documentation.

Dependencies

~43–62MB
~1M SLoC