Correctly strip prompt characters from bash snippets...

...when copying to clipboard