Chop the onion. Heat the oil in a saucepan then add the onion to the pan and cook until lightly browned.
Cut the peppers into strips and dice the tomatoes. Add both items into the pan. Salt and pepper, and add the minced garlic.
Cover and simmer 20 to 30 minutes until you have a sort of "compote" texture, without a lot of liquid. If there is too much liquid, thicken it by cooking the mixture uncovered for a few minutes, stirring constantly with a wooden spoon.
In a bowl, crack the eggs and break them up with a fork, but be careful not to whisk or beat them. Add salt and pepper.
Pour the eggs into a pan and scramble them. Once cooked, add the vegetables; there should no longer be any juice remaining.