only show jj repo status, not git
This commit is contained in:
parent
a364ac7be3
commit
9f9350fe0b
3 changed files with 132 additions and 23 deletions
35
home.nix
35
home.nix
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue