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:
parent
4d0fea8752
commit
2890aa339a
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
let
|
let
|
||||||
ifSudo = lib.mkIf config.security.sudo.enable;
|
ifSudo = lib.mkIf config.security.sudo.enable;
|
||||||
in
|
in
|
||||||
|
@ -10,7 +10,7 @@ in
|
||||||
"....." = "cd ../../../..";
|
"....." = "cd ../../../..";
|
||||||
|
|
||||||
# ls
|
# 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";
|
la = "ls --long --no-filesize --no-permissions --no-user --git --icons";
|
||||||
lat = "la --tree";
|
lat = "la --tree";
|
||||||
l = "la --all";
|
l = "la --all";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue