From ce363cafe1a58f6da7374b27c03fa97e5fb0809d Mon Sep 17 00:00:00 2001 From: "Lennart J. Kurzweg (Nx2)" Date: Sun, 30 Mar 2025 23:59:04 +0200 Subject: [PATCH] eza refactor --- home-modules/fish.nix | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/home-modules/fish.nix b/home-modules/fish.nix index 8687dc2..bfecb3b 100644 --- a/home-modules/fish.nix +++ b/home-modules/fish.nix @@ -38,14 +38,17 @@ programs.fish = { enable = true; - shellAliases = { - ls = "eza --icons --git --smart-group --group-directories-first"; - ll = "eza --icons --git --smart-group --group-directories-first --long"; - la = "eza --icons --git --smart-group --group-directories-first --all"; - lla = "eza --icons --git --smart-group --group-directories-first --all --long"; - lt = "eza --icons --git --smart-group --group-directories-first --long --tree"; - ltd = "eza --icons --git --smart-group --group-directories-first --long --tree -D"; - lt2 = "eza --icons --git --smart-group --group-directories-first --long --tree -L 2"; + shellAliases = let + base-eza = "eza --icons --git --smart-group --group-directories-first"; + in { + ls = "${base-eza}"; + ll = "${base-eza} --long"; + lg = "${base-eza} --group --long"; + la = "${base-eza} --all"; + lla = "${base-eza} --all --long"; + lt = "${base-eza} --long --tree"; + ltd = "${base-eza} --long --tree -D"; + lt2 = "${base-eza} --long --tree -L 2"; sr = "sudo reboot"; nf = "neofetch"; nxf = "nxfetch";