Heat oil in a pan and sauté onions and green chilli until soft and lightly golden.