1
Fork 0
satellite/home/features/cli/exa.nix
2023-05-28 02:00:10 +02:00

17 lines
425 B
Nix

{ pkgs, ... }: {
home.packages = [ pkgs.exa ];
# TODO: generalize alias creation to all shells
programs.fish.shellAliases =
let exa = "${pkgs.exa}/bin/exa";
in
rec {
ls = "${exa} --icons --long";
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!
tree = "${exa} --icons --tree";
};
}