I’m happy to tell you that borrowing a shaver (whether it’s a razor or an electric shaver) is not a risk of HIV exposure. The HIV virus does not live very long outside of the body in the open air. Using a shaver that was used by an HIV positive person is not an exposure that would warrant HIV testing.
The main methods for HIV transmission are sex and shared drug equipment. If you use injection drugs or have anal or vaginal sex without condoms, we would recommend routine testing for HIV and other sexually transmitted or blood-borne infections.
Hepatitis is a hardier virus than HIV. We recommend not sharing personal items like toothbrushes, razors, nail clippers or other personal hygiene products that may have tiny amounts of blood on them in order to avoid Hepatitis B or C transmission.