pantheon/users/modules/sh.nix
2025-03-04 13:16:56 +08:00

18 lines
417 B
Nix

{
programs.bash = {
enable = true;
shellAliases = {
rebuild = "sudo nixos-rebuild switch --flake";
gs = "git status";
ai = "aichat -r %shell% -e";
};
};
# direnv lets us declare a .envrc in each project directory
# and updates the shell with the packages specified.
programs.direnv = {
enable = true;
enableBashIntegration = true;
nix-direnv.enable = true;
};
}