From 17ce23ea56aeecbd01dfeb08f6a7902c80f27311 Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Fri, 30 Jun 2023 21:47:03 +0200 Subject: [PATCH] lsd: use -A instead of -a in aliases (#4173) The current `lla` alias, together with the `total-size` option try to get the size of the `..` directory, and for this has to recursively open all sibling folders. This may be super slow if some of those siblings contain too many files, and raise a ton of useless errors if some of those siblings contains non-readable files. I'm suggesting to use `-A` instead, which will skip the obvious `.` and `..` folders. While here, I think we could also add `llt`. --- modules/programs/lsd.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/programs/lsd.nix b/modules/programs/lsd.nix index b79bbaf59..a7f81c74c 100644 --- a/modules/programs/lsd.nix +++ b/modules/programs/lsd.nix @@ -11,9 +11,10 @@ let aliases = { ls = "${pkgs.lsd}/bin/lsd"; ll = "${pkgs.lsd}/bin/lsd -l"; - la = "${pkgs.lsd}/bin/lsd -a"; + la = "${pkgs.lsd}/bin/lsd -A"; lt = "${pkgs.lsd}/bin/lsd --tree"; - lla = "${pkgs.lsd}/bin/lsd -la"; + lla = "${pkgs.lsd}/bin/lsd -lA"; + llt = "${pkgs.lsd}/bin/lsd -l --tree"; }; in {