Skip to content

uiforks/Clipboard

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Clipboard Banner

Cut, copy, and paste absolutely anything anywhere you want, all from the comfort of your terminal! This is 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. Really!
  • Universal. Clipboard supports English, Spanish, Portuguese, and Turkish.
  • A time-saver. Clipboard frees you from ugly temporary directories and memorizing file locations!

GitHub Repo stars Clipboard Demo Image

Quick Installation

Linux, macOS, all BSDs, and OI:

curl -sSL https://github.com/Slackadays/Clipboard/raw/main/install.sh | sh

Windows:

Invoke-WebRequest -UseBasicParsing https://github.com/Slackadays/Clipboard/raw/main/install.ps1 | powershell

Clone, Configure, Compile, and Install Manually

Get the latest commit by removing --branch 0.2.0 from git clone.... Change the installation prefix by adding -D CMAKE_INSTALL_PREFIX=/CUSTOM/PREFIX, and enable Debug Mode by adding -D TEST=1 to cmake ..

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

Uninstall

xargs rm < install_manifest.txt

Add sudo to the beginning for Linux, macOS, all BSDs except OpenBSD, and OpenIndiana, and add doas for OpenBSD.

For Windows, you may need to individually remove all the files in install_manifest.txt.


Premade Builds

You can download Clipboard directly from GitHub Actions.

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


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) or _ to use a persistent clipboard.


Copy   clipboard ([--]copy|[-]cp)[(num)|_(id)] (file) [files]


Cut   clipboard ([--]cut|[-]ct)[(num)|_(id)] (file) [files]


Paste   clipboard ([--]paste|[-]p)[(num)|_(id)]


Pipe In   (something) | clipboard [([--]copy|[-]cp)][(num)|_(id)]


Pipe Out   clipboard [([--]paste|[-]p][(num)|_(id)] | (something) or clipboard [([--]paste|[-]p)][(num)|_(id)] > (some file)


Show Contents   clipboard ([--]show|[-]sh)[(num)|_(id)]


Clear Contents   clipboard ([--]clear|[-]clr)[(num)|_(id)]


Examples

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

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 into a temporary directory. Other programs use TMPDIR as well, so be careful about changing this.


CLIPBOARD_TMPDIR   Set this environment variable to the directory that only Clipboard will use to hold the items you cut or copy into a temporary directory.


CLIPBOARD_PERSISTDIR   Set this environment variable to the directory that only Clipboard will use to hold the items you cut or copy into a persistent directory.


CLIPBOARD_ALWAYS_PERSIST   Set this environment variable to make Clipboard always use persistent clipboards.


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.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 88.5%
  • Shell 5.8%
  • CMake 3.0%
  • Objective-C 2.4%
  • PowerShell 0.3%