Fix starship config
This commit is contained in:
parent
8f60b4ad42
commit
c955c8726d
1 changed files with 7 additions and 2 deletions
|
@ -1,4 +1,9 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.eboskma.programs.starship;
|
||||
|
@ -171,7 +176,7 @@ in
|
|||
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." ""
|
||||
jj log -r@ -n1 --no-graph -T "" --stat | tail -n1 | ${lib.getExe pkgs.sd} "(\d+) files? changed, (\d+) insertions?\(\+\), (\d+) deletions?\(-\)" ' ''${1}m ''${2}+ ''${3}-' | ${lib.getExe pkgs.sd} " 0." ""
|
||||
'';
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue