users/dev_tools: update exa aliases

This commit is contained in:
Dmitriy Pleshevskiy 2022-11-10 14:44:17 +03:00
parent 956b20b61f
commit e04d5d08fc
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215

View file

@ -2,21 +2,22 @@
let let
exaPackage = pkgs.exa.override { gitSupport = false; }; exaPackage = pkgs.exa.override { gitSupport = false; };
defaultArgs = "--icons --classify";
bin = "${exaPackage}/bin/exa ${defaultArgs}";
in in
{ {
programs.exa = { programs.exa = {
enable = true; enable = true;
package = exaPackage; package = exaPackage;
}; };
programs.zsh.shellAliases = lib.mkIf config.programs.zsh.enable rec { programs.zsh.shellAliases =
ls = "${bin} --oneline"; let
la = "${ls} --all"; defaultArgs = "--icons --classify --group-directories-first --all";
lt = "${bin} --tree --level=3"; bin = "${exaPackage}/bin/exa ${defaultArgs}";
ll = "${bin} --long --header"; in
lla = "${ll} --all"; lib.mkIf config.programs.zsh.enable {
}; ls = "${bin} --oneline";
lt = "${bin} --tree --level=3";
ll = "${bin} --long --header";
};
programs.direnv = { programs.direnv = {
enable = true; enable = true;