2023-11-04 20:18:14 +01:00
|
|
|
{ pkgs, lib, ... }:
|
|
|
|
let package = pkgs.eza;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
home.packages = [ package ];
|
2023-02-08 04:31:15 +01:00
|
|
|
|
|
|
|
# TODO: generalize alias creation to all shells
|
|
|
|
programs.fish.shellAliases =
|
2023-11-04 20:18:14 +01:00
|
|
|
let eza = lib.getExe package;
|
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
|
|
|
}
|