Steps
1. Cook pasta according to package instructions.
2. In a pan, sauté chopped garlic and onions until golden.
3. Beat the egg and add it to the pan, stirring continuously.
4. Season with spices, salt, and pepper.
5. Toss in the cooked pasta and mix well.
6. Serve hot and garnish with fresh herbs if desired.