diff options
author | Minijackson <minijackson@riseup.net> | 2024-12-25 10:48:08 +0100 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2024-12-25 11:23:46 +0100 |
commit | e62aebb3efeafc16c28c51ccd53652a0b042fa35 (patch) | |
tree | 898466d48a2f06a445e93cb0b9634a4967ba7769 /common/commandline | |
parent | 8a22932ef97a2d2cf82b1ac0bdfb1f98f5617dbb (diff) | |
download | nixos-config-reborn-e62aebb3efeafc16c28c51ccd53652a0b042fa35.tar.gz nixos-config-reborn-e62aebb3efeafc16c28c51ccd53652a0b042fa35.zip |
common/starship: remove jj commands, too slow for nixpkgs
Diffstat (limited to 'common/commandline')
-rw-r--r-- | common/commandline/starship.nix | 32 |
1 files changed, 0 insertions, 32 deletions
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: | |||
31 | 31 | ||
32 | custom = { | 32 | custom = { |
33 | jj = { | 33 | jj = { |
34 | command = '' | ||
35 | jj log -r@ -l1 --ignore-working-copy --no-graph --color always -T ' | ||
36 | separate(" ", | ||
37 | bookmarks.map(|x| if( | ||
38 | x.name().substr(0, 10).starts_with(x.name()), | ||
39 | x.name().substr(0, 10), | ||
40 | x.name().substr(0, 9) ++ "…") | ||
41 | ).join(" "), | ||
42 | tags.map(|x| if( | ||
43 | x.name().substr(0, 10).starts_with(x.name()), | ||
44 | x.name().substr(0, 10), | ||
45 | x.name().substr(0, 9) ++ "…") | ||
46 | ).join(" "), | ||
47 | surround("\"","\"", | ||
48 | if( | ||
49 | description.first_line().substr(0, 24).starts_with(description.first_line()), | ||
50 | description.first_line().substr(0, 24), | ||
51 | description.first_line().substr(0, 23) ++ "…" | ||
52 | ) | ||
53 | ), | ||
54 | if(conflict, "conflict"), | ||
55 | if(divergent, "divergent"), | ||
56 | if(hidden, "hidden"), | ||
57 | ) | ||
58 | ' | ||
59 | ''; | ||
60 | detect_folders = [ ".jj" ]; | 34 | detect_folders = [ ".jj" ]; |
61 | symbol = "jj "; | 35 | symbol = "jj "; |
62 | }; | 36 | }; |
63 | jjstate = { | ||
64 | command = '' | ||
65 | jj log -r@ -n1 --no-graph -T "" --stat | tail -n1 | sd "(\d+) files? changed, (\d+) insertions?\(\+\), (\d+) deletions?\(-\)" ' ''${1}m ''${2}+ ''${3}-' | sd " 0." "" | ||
66 | ''; | ||
67 | detect_folders = [ ".jj" ]; | ||
68 | }; | ||
69 | }; | 37 | }; |
70 | } | 38 | } |
71 | 39 | ||