2023-09-28 02:13:35 +02:00
|
|
|
{ upkgs, lib, ... }: {
|
|
|
|
# REASON: not yet in nixpkgs-stable
|
|
|
|
home.packages = [ upkgs.eza ];
|
2023-02-08 04:31:15 +01:00
|
|
|
|
|
|
|
# TODO: generalize alias creation to all shells
|
|
|
|
programs.fish.shellAliases =
|
2023-09-28 02:13:35 +02:00
|
|
|
let eza = lib.getExe upkgs.eza;
|
2023-02-08 04:31:15 +01:00
|
|
|
in
|
|
|
|
rec {
|
2023-09-28 02:13:35 +02:00
|
|
|
ls = "${eza} --icons --long";
|
2023-02-08 04:31:15 +01:00
|
|
|
la = "${ls} --all";
|
|
|
|
lt = "${ls} --tree"; # Similar to tree, but also has --long!
|
|
|
|
|
|
|
|
# I am used to using pkgs.tree, so this is nice to have!
|
2023-09-28 02:13:35 +02:00
|
|
|
tree = "${eza} --icons --tree";
|
2023-02-08 04:31:15 +01:00
|
|
|
};
|
2023-02-05 04:06:39 +01:00
|
|
|
}
|