Look through the refrigerator and cupboard for food that needs using soon. Choose a few meals around what is already available, taking account of safe storage and use-by dates.
Write the missing ingredients down before leaving. This prevents a shopping list from becoming a duplicate of things already at home.