get in/into one's hair, to
To annoy someone more or less persistently. The allusion here may well be to head lice but is not known for certain. Presumably it was already in common use by the time Mark Twain wrote, “You’ll have one of these . . . old professors in your hair” (A Tramp Abroad, 1880).