starship: Add config for jujutsu
This commit is contained in:
parent
b5f62d67fb
commit
8f60b4ad42
1 changed files with 41 additions and 0 deletions
|
@ -136,6 +136,47 @@ in
|
|||
time.disabled = false;
|
||||
zig.symbol = " ";
|
||||
|
||||
custom = {
|
||||
jj = {
|
||||
command = ''
|
||||
jj log -r@ -n1 --ignore-working-copy --no-graph --color always -T '
|
||||
separate(" ",
|
||||
bookmarks.map(|x| if(
|
||||
x.name().substr(0, 10).starts_with(x.name()),
|
||||
x.name().substr(0, 10),
|
||||
x.name().substr(0, 9) ++ "…")
|
||||
).join(" "),
|
||||
tags.map(|x| if(
|
||||
x.name().substr(0, 10).starts_with(x.name()),
|
||||
x.name().substr(0, 10),
|
||||
x.name().substr(0, 9) ++ "…")
|
||||
).join(" "),
|
||||
surround("\"","\"",
|
||||
if(
|
||||
description.first_line().substr(0, 24).starts_with(description.first_line()),
|
||||
description.first_line().substr(0, 24),
|
||||
description.first_line().substr(0, 23) ++ "…"
|
||||
)
|
||||
),
|
||||
if(conflict, "conflict"),
|
||||
if(divergent, "divergent"),
|
||||
if(hidden, "hidden"),
|
||||
)
|
||||
'
|
||||
'';
|
||||
when = "jj root";
|
||||
symbol = "jj";
|
||||
};
|
||||
|
||||
jjstate = {
|
||||
when = "jj root";
|
||||
command = ''
|
||||
jj log -r@ -n1 --no-graph -T "" --stat | tail -n1 | sd "(\d+) files? changed, (\d+) insertions?\(\+\), (\d+) deletions?\(-\)" ' ''${1}m ''${2}+ ''${3}-' | sd " 0." ""
|
||||
'';
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
palettes = {
|
||||
catppuccin_macchiato = {
|
||||
rosewater = "#f5e0dc";
|
||||
|
|
Loading…
Reference in a new issue