cb

Description

My life as a developer is a mess: at work I have a laptop with Windows 7 and Cygwin installed; I also have a Vagrant box, running Ubuntu, that I use to do the most of my development work. At home I have a Macbook Air, with Mac OS Sierra.

You can easily imagine how quickly I got tired of having to remember which of the various pbaste, getclip et al. command I should have run depending on which terminal window I had opened.

Wouldn't it be nice if I could read from the OS clipboard, or write to it, using a single command line tool? And wouldn't it awesome if the same tool worked on various operating systems? (at least the ones I use on a daily basis)

enters cb..

Hands-on

Write to the OS clipboard
      
> echo "cb is awesome!" | cowsay | cb
      
    
Read from the OS clipboard
      
> cb
 ________________ 
< cb is awesome! >
 ---------------- 
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
      
    
It works remotely too!
      
> cb --listen &
> ssh -R 5556:localhost:5556 user@remote
remote> cb
 ________________ 
< cb is awesome! >
 ---------------- 
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
      
    

Sources

Github: https://github.com/iamFIREcracker/cb