Skip to content

soraxas/cb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 

Repository files navigation

Easy clipboard

Getting started

You can directly supply arguments as input string

$ cb "Hey! How you doing?"
Copied to clipboard: Hey! How you doing?

Or you can just pipe inputs to cb

$ cat /etc/profile | cb
Copied to clipboard: # /etc/profile

# Append "$1" to $PATH when not already in.
# This function API ...

... and cb will preserve all newlines.

Clipboard across ssh

ssh to you remote machine with

$ ssh [email protected] -R 15756:localhost:15756

You also need to start a local cb process in your local machine (client)

$ cb -r
Listening to remote @ localhost:15756...

Then, you can run cb as usual

[email protected] $ pwd | cb
>> Detected inside ssh, setting current role as remote sender.
Sending to remote @ localhost:15756...
Copied to clipboard: myhomeserver.org

About

Shell Clipboard

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages