http://blog.genesage.com/nail-fungus-baking-soda/

Preventing fungal nail infections
The number one criteria to prevent fungal nail infections is to maintain good hygiene, wash and keep hands and feet dry as soon as possible. The fungus prefers moist, humid environments and it is therefore essential to avoid this situation. Practice basic hygiene such as keeping nails short, clean and dry.
We should avoid wearing tight shoes restrictive that can create heat and humidity. Socks should be cotton can easily absorb moisture. If the shoes do not are wet, they should be changed often. Socks must be changed on a daily basis and more often if you sweat profusely.
After exercise, your feet should be thoroughly cleaned, dried and must wear a different pair of shoes. Open toe sandals you can wear. If it is regularly exposed to water at work, then gloves and rubber boots should be worn.
There many prescription drugs anti fungal available without prescription. The powder can be sprinkled on the feet, on a regular basis.
Individuals who constantly pick or prick their skin or nails should avoid this practice.
People who are diabetic or immunocompromised, should avoid walking barefoot in public showers, swimming pools or gyms.
If you frequent a spa to get your pedicure or manicure make sure the place is clean and that the therapist sterilize instruments after each session.
Do not mask changes in nails with nail polish. It could be a fungal infection of the stage. The sooner you get the infection treated, the better the prognosis. If fungal infection is already present and applying nail polish, it will provide a better environment for fungi to grow and multiply.
Finally, practice thorough hand washing, both at work and at home.
Home remedies to treat fungal infections of the nail
Most people expect medication to work immediately. However, this is not always true when it comes of fungal nail infections. All drugs to treat fungal infections of the nails take a very long work. This has led consumers to try homemade care and alternative therapies. A few remedies are the following:
Vinegar is a preferred liquid used to treat a variety disorders of the skin. Although there is no scientific evidence that it can kill a fungus, there are anecdotal reports that vinegar can kill bacteria. There is no harm in trying the vinegar to treat fungal infections of the nails, but the practice must be regular, if we will see a difference.
Home Other therapies include the use of Tiger Balm, Vicks VapoRub, Dettol, and baking.