or what can be done to prevent it?
six months of an oral fungicide is only way
there is no real solution. even oral pills have a 60% recurrence of fungus. may have to live with it. they have nail polish with fungus fighters in it but expensive($70)
The only quick way to get rid of nail fungus is to have the nail removed. Otherwise, the slow growth of nail tissue requires long treatment.