mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-28 19:23:48 +01:00
eza: Use separate home-manager module
Also adds the new --git-ignore feature to avoid having to manually specify an ignore list.
This commit is contained in:
parent
4492f2921e
commit
6a0cc46906
12
home/eza.nix
Normal file
12
home/eza.nix
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
programs.eza = {
|
||||||
|
enable = true;
|
||||||
|
icons = true;
|
||||||
|
|
||||||
|
extraOptions = [
|
||||||
|
"--group-directories-first"
|
||||||
|
"--no-quotes"
|
||||||
|
"--git-ignore"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
@ -40,8 +40,7 @@ in
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
ls = "${pkgs.eza}/bin/eza --icons --group-directories-first --no-quotes -I 'lost+found'";
|
tree = "eza --all --long --tree";
|
||||||
tree = "${pkgs.eza}/bin/eza --icons --group-directories-first --no-quotes --all --long --tree -I 'node_modules|.git|public|lost+found|target|.next|.cache|.nuxt|themes|.direnv|.wrangler|.vercel|dist'";
|
|
||||||
mv = "mv -i";
|
mv = "mv -i";
|
||||||
cp = "cp -ia";
|
cp = "cp -ia";
|
||||||
rg = "${pkgs.ripgrep}/bin/rg --max-columns=2000 --smart-case";
|
rg = "${pkgs.ripgrep}/bin/rg --max-columns=2000 --smart-case";
|
||||||
|
Loading…
Reference in New Issue
Block a user