only show jj repo status, not git

This commit is contained in:
Khaïs COLIN 2025-10-16 12:46:51 +02:00
parent a364ac7be3
commit 9f9350fe0b
Signed by: logistic-bot
SSH key fingerprint: SHA256:RlpiqKeXpcPFZZ4y9Ou4xi2M8OhRJovIwDlbCaMsuAo
3 changed files with 132 additions and 23 deletions

View file

@ -8,6 +8,7 @@
kitty-unstable,
nix-doom-emacs-unstraightened,
cassowary,
starship-jj,
...
}: let
username = "khais";
@ -39,6 +40,8 @@ in {
fd
file
rclone
# jj info in shell prompt
starship-jj
# used for yazi epub previews
epub-thumbnailer
# remote working
@ -498,31 +501,21 @@ in {
settings = {
# short prompt timeout
command_timeout = 30;
# custom.jj = {
# command = ''
# jj log -r@ -n1 --ignore-working-copy --no-graph --color always -T '
# separate(" ",
# bookmarks.map(|x| truncate_end(10, x.name(), "…")).join(" "),
# tags.map(|x| truncate_end(10, x.name(), "…")).join(" "),
# surround("\"", "\"", truncate_end(24, description.first_line(), "…")),
# if(conflict, "conflict"),
# if(divergent, "divergent"),
# if(hidden, "hidden"), )
# '
# '';
# when = "jj root --ignore-working-copy";
# symbol = "jj";
# };
# custom.jjstate = {
# command = ''
# jj log -r@ -n1 --ignore-working-copy --no-graph --stat | tail -n1 | ${pkgs.sd}/bin/sd "(\d+) files? changed, (\d+) insertions?\(\+\), (\d+) deletions?\(-\)" ' ''${1}m ''${2}+ ''${3}-' | ${pkgs.sd}/bin/sd " 0." ""
# '';
# when = "jj root";
# };
git_state.disabled = true;
git_status.disabled = true;
git_commit.disabled = true;
git_metrics.disabled = true;
git_branch.disabled = true;
custom.jj = {
command = "prompt";
format = "$output";
ignore_timeout = true;
shell = ["starship-jj" "--ignore-working-copy" "starship"];
use_stdin = false;
when = true;
};
};
};