Correctly strip prompt characters from bash snippets when copying to clipboard.
Handle edge case with continuation lines.
Merge pull request #1038 from alasdairhodge/bash-clipboard-copy

Correctly strip prompt characters from bash snippets...