mirror of
https://github.com/kmein/niveum
synced 2026-03-20 20:01:08 +01:00
feat(shell.nix): colourful parallel
This commit is contained in:
@@ -62,7 +62,7 @@ in pkgs.mkShell {
|
|||||||
else
|
else
|
||||||
dependencies="${lib.concatStringsSep " " (lib.attrNames dependencies)}"
|
dependencies="${lib.concatStringsSep " " (lib.attrNames dependencies)}"
|
||||||
fi
|
fi
|
||||||
${pkgs.parallel}/bin/parallel --line-buffer --tagstring '{}' -q ${updateCommand} '{1}' ::: $dependencies
|
${pkgs.parallel}/bin/parallel --line-buffer --rpl '{color} $_="\033[30;3".(++$::1+color%8)."m"' --tagstring '{color}{}' -q ${updateCommand} '{1}' ::: $dependencies
|
||||||
'')
|
'')
|
||||||
|
|
||||||
(let
|
(let
|
||||||
@@ -110,7 +110,7 @@ in pkgs.mkShell {
|
|||||||
else
|
else
|
||||||
systems="$(ls ${toString ./.}/systems)"
|
systems="$(ls ${toString ./.}/systems)"
|
||||||
fi
|
fi
|
||||||
${pkgs.parallel}/bin/parallel --line-buffer --tagstring '{}' -q ${statusCommand} '{1}' ::: $systems
|
${pkgs.parallel}/bin/parallel --line-buffer --rpl '{color} $_="\033[30;3".(++$::1+color%8)."m"' --tagstring '{color}{}' -q ${statusCommand} '{1}' ::: $systems
|
||||||
'')
|
'')
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user