Your favourite OSX command line clipboard manipulation libraries pbcopy and pbpasteported over to Windows.
- pbcopy copies the standard input and places it in the specified pasteboard.
- pbpaste copies the data from the pasteboard and writes it to the standard output.
Installation is done via scoop:
# Make sure you have added scoop-extras bucket.
$ scoop bucket add extras
$ scoop install pasteboard
If you don't want to add scoop-extras bucket, you can install through a remote json file:
$ scoop install https://github.com/lukesampson/scoop-extras/blob/master/bucket/pasteboard.json
To copy your SSH key to the clipboard:
$ cd .ssh
$ type id_rsa.pub | pbcopy
To write the contents of your clipboard to a file:
$ cd C:\tmp
$ pbpaste > output.txt
$ pbpaste --lf > output.txt # Converting CRLF to LF
- Add
--lfoption to convertCRLFtoLF - Support installation by scoop
- The original repository is here.
- The icon "Clipboard" designed by Ilsur Aptukov from The Noun Project.
