hluk / CopyQ

Clipboard manager with advanced features
GNU General Public License v3.0
8.7k stars 441 forks source link

How to copy .zip files in terminal? #1967

Open IvesSSa opened 2 years ago

IvesSSa commented 2 years ago

i"m typed "copyq copy application/zip - < myZipFile.zip" is Nothing...

hluk commented 2 years ago

What do you expect to happen?

IvesSSa commented 2 years ago

I mean,copy zip file to CopyQ Clipboard in Terminal ,how to do it?

What do you expect to happen?

hluk commented 2 years ago

Your command sets application/zip format in clipboard to the contents of the zip file (at least in Bash):

copyq copy application/zip - < myZipFile.zip

To verify create the file copy from clipboard:

copyq clipboard application/zip > myZipFile-copy.zip