nixos-config/config/apps/bash.nix

21 lines
390 B
Nix
Raw Normal View History

2024-07-29 00:00:59 +00:00
{ ... }:
{
programs.bash = {
enable = true;
bashrcExtra = ''
function nxr () {
set -u
local pkg="$1"
shift
nix-shell -p "$pkg" --run "$pkg $@"
set +u
}
2024-08-02 16:50:48 +00:00
eval "$(direnv hook bash)"
2024-07-29 00:00:59 +00:00
'';
shellAliases = {
"git-override" = "git add . && git commit --amend --no-edit && git push --force-with-lease";
};
};
}