In a medium, heavy skillet (such as cast iron) heat oil over medium. Add onion and pepper and cook, stirring, until softened, 6-8 minutes. Stir in garlic and cook 1 minute more. Stir in rice and cook, stirring frequently, until lightly browned, about 5 minutes.