mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-03 07:31:03 +01:00
38 lines
838 B
Nix
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'"
|
|
'';
|
|
}
|