How do you get alternaria in your toenails?

This is a type. Of fungus. Fungus likes to live in dark, wet, moist areas. Your toenails in socks, in shoes set up a perfect breeding ground. Fungus will usually invade a nail after it has been damaged in some capacity. A slight crack in the nail for example.