tweak(global/shell): hard-code exa binary

Makes it work in nix develop shells regardless of the shell environment
Develop shells remove the exa binary from path, which is... problematic
for a command replacement as central as `ls`.
This commit is contained in:
Infinidoge 2023-03-20 15:40:06 -04:00
parent 4d0fea8752
commit 2890aa339a

View file

@ -1,4 +1,4 @@
{ config, lib, ... }:
{ config, lib, pkgs, ... }:
let
ifSudo = lib.mkIf config.security.sudo.enable;
in
@ -10,7 +10,7 @@ in
"....." = "cd ../../../..";
# ls
ls = "exa";
ls = "${lib.getExe pkgs.exa}"; # HACK: Bypasses PATH so it works in nix develop shell
la = "ls --long --no-filesize --no-permissions --no-user --git --icons";
lat = "la --tree";
l = "la --all";