From 2890aa339a2f23ba5ecba19e1496df7ffadeb8b4 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Mon, 20 Mar 2023 15:40:06 -0400 Subject: [PATCH] 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`. --- modules/global/shell.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/global/shell.nix b/modules/global/shell.nix index 51078ba..373b003 100644 --- a/modules/global/shell.nix +++ b/modules/global/shell.nix @@ -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";