Skip to content
maralorn edited this page May 24, 2024 · 18 revisions

https://starship.rs/ is a cross-shell prompt.

For minimal info about the jj change you are currently at you can use:

[custom.jj]
command = "jj -r@ -l1 --no-graph -T \"\" --stat | tail -n1 | sd \"(\\d+) files? changed, (\\d+) insertions?\\(\\+\\), (\\d+) deletions?\\(-\\)\" \"\\${1}m \\${2}+ \\${3}-\" | sd \"0. ?\" \"\"\n"
detect_folders = [".jj"]
style = "bold blue"
symbol = "jj "

Prints e.g.

jj 3m 63+

in the prompt.

Clone this wiki locally