Don't share hats, brushes, combs, bedding. Don't lean your head against someone who has lice.
If you think it is infected, seal it in plastic and let it sit for a month. They'll die of starvation.
Comb your hair thoroughly from the root out of nits until they go away, regularly washing all bedding, hats, clothing with hoods.