Do you remember the moment when you realised in Linux that clicking the mouse wheel pasted selected text? I had a similar reveleation when I discovered xclip recently, a handy utility for pushing text into the clipboard. I’m forever copying and pasting paths from SSH sessions so here’s a bash function that does the work for you…
If you’re got apt-get and sudo rights, then you can install xclip with:
If you don’t have either of the above, then you can compile from source with (defaults to the slow but likely available GNU compiler):
Seems like a bit of work but it’s pretty quick. And then, once compiled, add the following to your ~/.bashrc…
This assumes that you compiled in ~/xclip/ as above. Happy speedy copy/pasting!