0.1.0 |
|
---|---|
0.0.5 |
|
#160 in #clipboard
34KB
891 lines
cbs
Work in progress
cbs is a command line utility that is designed to run on linux system , macOs and maybe windows. It provides an interface to manage clipboard from the command line
Install cbs
# you need install rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# and then install cbs
cargo install cbs
How to use
- copy text to clipboard:
cbs copy "Text to be copied to clipboard"
- copy text to primary:
cbs copy -s primary "Text to be copied to primary # only linux"
- paste copied text from clipboard:
cbs paste
- paste copied text from primary:
cbs paste -s primary # only linux
- copy text to clipboard from stdin:
cat exmaple-file.txt | cbs
- copy text to primary from stdin:
cat exmaple-file.txt | cbs -s primary # only linux
Usage
USAGE:
cbs [OPTIONS] [SUBCOMMAND]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-s, --select <selection> to access clipboard or primary [default: clipboard] [possible values: clipboard,primary]
SUBCOMMANDS:
clear clear text content
copy copy text content
help Prints this message or the help of the given subcommand(s)
paste paste text content
Dependencies
~4–14MB
~171K SLoC