This adds about 0.1s to nix-shell runtime in the case where bashInteractive already exists. See discussion at https://github.com/NixOS/nixpkgs/issues/27493.
This was a dumb line-for-line rewrite, because nix build/nix run/etc. will replace it.