nixos-config/config/apps/bash/default.nix

17 lines
428 B
Nix

{ ... }:
{
programs.bash = {
enable = true;
bashrcExtra = ''
${builtins.readFile ./nxr.sh}
eval "$(direnv hook bash)"
'';
shellAliases = {
"quick-switch-c" = "cd ~/Git/nixos-config; ./quick-switch.sh -c";
"quick-switch" = "cd ~/Git/nixos-config; ./quick-switch.sh";
"git-override" = "git add . && git commit --amend --no-edit && git push --force-with-lease";
};
};
}