1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-03 15:41:02 +01:00
home-manager/tests/modules/programs/eza/bash.nix
2025-04-27 14:30:15 -05:00

38 lines
838 B
Nix

{
programs = {
bash.enable = true;
eza = {
enable = true;
enableBashIntegration = true;
extraOptions = [
"--group-directories-first"
"--header"
];
icons = "auto";
git = true;
};
};
nmt.script = ''
assertFileExists home-files/.bashrc
assertFileContains \
home-files/.bashrc \
"alias eza='eza --icons auto --git --group-directories-first --header'"
assertFileContains \
home-files/.bashrc \
"alias ls=eza"
assertFileContains \
home-files/.bashrc \
"alias ll='eza -l'"
assertFileContains \
home-files/.bashrc \
"alias la='eza -a'"
assertFileContains \
home-files/.bashrc \
"alias lt='eza --tree'"
assertFileContains \
home-files/.bashrc \
"alias lla='eza -la'"
'';
}