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,20 +2,21 @@
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 =
let
defaultArgs = "--icons --classify --group-directories-first --all";
bin = "${exaPackage}/bin/exa ${defaultArgs}";
in
lib.mkIf config.programs.zsh.enable {
ls = "${bin} --oneline"; ls = "${bin} --oneline";
la = "${ls} --all";
lt = "${bin} --tree --level=3"; lt = "${bin} --tree --level=3";
ll = "${bin} --long --header"; ll = "${bin} --long --header";
lla = "${ll} --all";
}; };
programs.direnv = { programs.direnv = {