Dip ur feet in warm water and sprinkle a bit of salt in it. Or dettol etc.
Do it for 4-5 days atleast and fungus would start going away.
Another thing which can help is the vicks vapourab on the affected toenail. And then wear socks.
To avoid it for future. Wear tidy socks. Change ur socks daily and make sure ur feet are exposed to fresh air or are without socks for an hour per day.