Heat the vegetable oil in a medium sauce pan. Add the onions and cook for about 5 minutes. Add the garlic and pumpkin and cook for about 2 minutes over medium-low heat.
Add the coconut milk, cumin, curry, salt, pepper and crushed red pepper. Cover and cook for 10 minutes.
Add the shredded coconut, stir and cook for 2 minutes more. Serve immediately.