Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.
/ cbs Public archive

interface to manage clipboard from the command line

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

robatipoor/cbs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cbs

Crates.io Build Status Build status License

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

About

interface to manage clipboard from the command line

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published