Yeast infection

So I got a yeast infection towards the end of last semester in college. It was really bad and there was so muc itching and burning when I went to the bathroom. I went to my gyno over Christmas break and she gave me a pill and it was fine the entire time I was home. I'm back at college now, and I think I have another yeast infection because the itching has started. I don't want to have to go to the Gyno again. Is there any way to help prevent yeast infections so I don't have to deal with this again?