Copy output of the previous command to clipboard.
- Clone the repo
cdto the folder- Run
go install - Make sure you have your
$GOPATH/binin yourPATH
$ echo "Hello World" | clipitThis will copy "Hello World" to your clipboard. You can use this with any command. eg:
$ ls -al ~ | clipitThis will copy the output of the ls to your clipboard.
$ clipit
Hello World
^D # Use ^D to signal end of inputThis will copy "Hello World" to your clipboard.