nixos-config/config/apps/bash.nix

21 lines
390 B
Nix

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