From e62aebb3efeafc16c28c51ccd53652a0b042fa35 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Wed, 25 Dec 2024 10:48:08 +0100 Subject: common/starship: remove jj commands, too slow for nixpkgs --- common/commandline/starship.nix | 32 -------------------------------- 1 file changed, 32 deletions(-) (limited to 'common') diff --git a/common/commandline/starship.nix b/common/commandline/starship.nix index 98b6e36..cb12611 100644 --- a/common/commandline/starship.nix +++ b/common/commandline/starship.nix @@ -31,41 +31,9 @@ _inputs: custom = { jj = { - command = '' - jj log -r@ -l1 --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"), - ) - ' - ''; detect_folders = [ ".jj" ]; symbol = "jj "; }; - jjstate = { - 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." "" - ''; - detect_folders = [ ".jj" ]; - }; }; } -- cgit v1.2.3