How to make vi-mode bindings in terminal copy to clipboard
If I want to yank my last command I can
yy, but this does not
copy to the system clipboard.
How do I configure my terminal to copy to the system clipboard so I can paste into other programs?
I am using zsh, but an answer for bash and zsh would be thorough and appreciated.