From c955c8726d60f2563da73816c4dd7f28db14b198 Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Fri, 13 Dec 2024 10:26:08 +0100 Subject: [PATCH] Fix starship config --- home-manager/modules/starship/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/home-manager/modules/starship/default.nix b/home-manager/modules/starship/default.nix index 9303c6d..7fd8a80 100644 --- a/home-manager/modules/starship/default.nix +++ b/home-manager/modules/starship/default.nix @@ -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." "" ''; };