Is there a way to copy the currently written content of the bash prompt? Say I wrote:
so that the lines in terminal looks like:
petr@sova:~$ ping www.google.com
and didn't hit return yet. I want to copy that text to clipboard. Is that possible?
The usual usecase would be hitting up several times and finding a command which I want to copy.