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

17 lines
428 B
Nix
Raw Permalink Normal View History

2024-07-29 00:00:59 +00:00
{ ... }:
{
programs.bash = {
enable = true;
bashrcExtra = ''
2024-08-04 22:03:09 +00:00
${builtins.readFile ./nxr.sh}
2024-08-02 16:50:48 +00:00
eval "$(direnv hook bash)"
2024-07-29 00:00:59 +00:00
'';
shellAliases = {
2024-08-12 01:15:17 +00:00
"quick-switch-c" = "cd ~/Git/nixos-config; ./quick-switch.sh -c";
"quick-switch" = "cd ~/Git/nixos-config; ./quick-switch.sh";
2024-07-29 00:00:59 +00:00
"git-override" = "git add . && git commit --amend --no-edit && git push --force-with-lease";
};
};
}