I've put a short pieces of outer cable housing before, you need to put the end caps on them, then to stop them sliding I used strong cable ties (electric hardware shop) & banded to the bottom of the down tube, if you are lucky you can buy cable ties in different colours, I surprised there is so much tension RD & FD to cut in like as shown on your photo