zoenglinghou / Clipboard

πŸ“‹ Cut, copy, and paste anything, anywhere, all from the terminal.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clipboard Banner

Cut, copy, and paste absolutely anything anywhere you want, all from the comfort of your terminal! The clipboard powertool for the command line.

  • Zero-bloat. Clipboard rings in at mere kilobytes on most platforms.
  • Zero-config. Clipboard doesn't require any configuration to use.
  • Zero-effort. Clipboard is friendly to newbies and power users alike.
  • Zero-dependency. Clipboard works on any up-to-date Windows, Linux, Android, macOS, FreeBSD, OpenBSD, NetBSD, DragonFlyBSD, or OpenIndiana system, or anything that supports C++20, all with ZERO dependencies. Yes, really!
  • Universal. Clipboard supports English, Spanish, Portuguese, and Turkish locales.
  • A time-saver. Clipboard frees you from ugly, temporary directories and memorizing file locations!

GitHub Repo stars Clipboard Demo Image

How To Use

In all commands, you can substitute cb for clipboard. Add a number to the end of the action to choose which clipboard you want to use (the default is 0).


Copy

clipboard [--](copy|cp) (file) [files]


Cut

clipboard [--](cut|ct) (file) [files]


Paste

clipboard [--](paste|p)


Pipe In

(something) | clipboard [[--](copy|cp)]


Pipe Out

clipboard [[--](paste|p] | (something)

or

clipboard [[--](paste|p)] > (some file)


Show Contents

clipboard [--](show|sh)


Clear

clipboard [--](clear|clr)


Examples

cb copy foo.txt launchcodes.doc
clipboard cut1 MyDirectory
cb cp800 bar.conf AnotherDirectory baz.txt

Quick Installation

Clone, Configure, & Compile

git clone https://github.com/slackadays/Clipboard
cd Clipboard
cmake .
cmake --build .

Install

Linux, macOS, all BSD except OpenBSD, OpenIndiana:

sudo cmake --install .

OpenBSD:

doas cmake --install .

Windows:

cmake --install .

Uninstall

Linux, macOS, all BSD except OpenBSD, OpenIndiana:

sudo xargs rm < install_manifest.txt

OpenBSD:

doas xargs rm < install_manifest.txt

Windows:

You may need to individually remove all the files in install_manifest.txt.


Actions

You can also download Clipboard builds from GitHub Actions.


AUR

Arch-Linux users can install the clipboard, clipboard-bin, or clipboard-git AUR package.


Simple Configuration

CI

Set this environment variable to make Clipboard overwrite existing items without a user prompt when pasting. This variable is intended for Continuous Integration scripts where a live human is not present to make decisions.


FORCE_COLOR

Set this environment variable to make Clipboard always show color regardless of what you set NO_COLOR to.


TMPDIR

Set this environment variable to the directory that Clipboard will use to hold the items you cut or copy.


NO_COLOR

Set this environment variable to make Clipboard not show any colors.


--fast-copy, -fc

Add this flag to use links when copying, cutting, or pasting. If you modify the items that you used with this flag, then the items you paste will have the same changes.


Painless Documentation

Click here to go the Clipboard Wiki.

Fast Support

Click here to go to our Discord group.

About

πŸ“‹ Cut, copy, and paste anything, anywhere, all from the terminal.

License:GNU General Public License v3.0


Languages

Language:C++ 87.7%Language:Shell 8.5%Language:CMake 3.8%