QUOTE(mepstein @ Mar 3 2021, 07:53 PM)
Yep. It's what I've recommended for years. A dollar or two at your local bike shop vs $10-15 + ship.
I think they're more like five or six dollars now, and everyone was out of them for a bit, because Covid. You can also finish it off nicely with a derailleur cable crimp. The only drawback to using them is you get twice as much cable for half the money so you need to cut it to fit (after it's installed, just cut off the extra). But use a cutting tool that surrounds the cable NOT diagonal cutters. Something like this:
https://www.amazon.com/Zeno-Bicycle-Housing...93462&psc=1 otherwise you will make a mess of the end of the cable. I don't know if the more expensive ones come the right length because I've never bought one.