I have to, a lot of times, get things onto the clipboard from the terminal. I do it like this:
echo "something"|xclip -selection clipboard
Doing this every time is way too lame, and I want to make a shortcut. How do I do it?
I have to, a lot of times, get things onto the clipboard from the terminal. I do it like this:
echo "something"|xclip -selection clipboard
Doing this every time is way too lame, and I want to make a shortcut. How do I do it?
You could use alias. Add below line to
~/.bash_aliases.Then you go like this:
You have to come up with good name for that on your own.
Answering your comment:
Create cpstring file, put it somewhere visible by your $PATH:
Remember to add exe rights to that file:
chmod +x cpstring