Constant vigilance. IN grad school it was easy bc I only kept things in the pantry necessary to make the same meals every day: oatmeal with fruits, chicken breast and various vegetables, a variable bean and rice dish like Cuban black beans or rajma masala.
But now I'm married and have kids and it's a ridiculous way to expect to have a family, eat the same meals every day for years.