Use a good quality (OEM) cable. I've used the cheap ones a few times, and they never have the right feel, and don't last as long.
As others have said, Lube it monthly and it should last for years.
The fraying was caused by a kink/bend or lack of lube.