The Clipboard Project

The Clipboard Project is an advanced clipboard manager tool for your terminal that provides a seamless way to store and access your copied items, allowing you to manage and organize your clipboard history effortlessly.

Install

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

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
100  200k    0  200k    0     0  69952      0 --:--:--  0:00:02 --:--:--  596k
Archive:  clipboard-linux.zip
   creating: bin/
   creating: lib/
  inflating: bin/cb                  
  inflating: lib/libcbx11.so         
  inflating: lib/libgui.a            
[sudo] contraseña para ruben: 
/usr/local/bin/cb
Clipboard installed successfully!  

Configuration

This application has support for multiple languages that will modify the usage of the application itself.
Instead $ cb copy fileName for copying a file into the cliboard, if your locale are set in Spanish for example the command will be $cb copiar fileName

If you want to modify it you just need to create a new environment variable with the desired locale value:

$ vim .zshrc

...
export CLIPBOARD_LOCALE=en_US.UTF-8 

$ source .zshrc

Help

$ cb -h

This is the Clipboard Project 0.7.1 (commit c1843f9), the cut, copy, and paste system for the command line.
│Examples
│cb ct Nuclear_Launch_Codes.txt contactsfolder (This cuts the following items into the default clipboard, 0.)
│clipboard cp1 dogfood.conf (This copies the following items into clipboard 1.)
│cb p1 (This pastes clipboard 1.)
│cb sh4 (This shows the contents of clipboard 4.)
│cb clr (This clears the contents of the default clipboard.)
│You can also choose which clipboard you want to use by adding a number to the end, or _ to use a persistent clipboard.
│More Info
│See the complete online documentation for CB at https://github.com/Slackadays/Clipboard.
│Show this help screen anytime with cb -h, cb --help, or cb help.
│You can also get more help in our Discord server at https://discord.gg/J6asnc3pEG
│Copyright (C) 2023 Jackson Huff. Licensed under the GPLv3.
│This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions.

Examples of usage

Example 1

$ ls -la | cb

✅ Copied 1159B

Then you can paste that text anywhere (this case a text note app):

total 80
drwxr-xr-x  19 root root  4096 dic 21 10:05 .
drwxr-xr-x  19 root root  4096 dic 21 10:05 ..
-rw-r--r--   1 root root     0 feb 13 08:47 0
lrwxrwxrwx   1 root root     7 dic 21 09:58 bin -> usr/bin
drwxr-xr-x   4 root root  4096 jun 16 13:28 boot
drwx------   2 root root  4096 dic 21 10:05 .cache
drwxr-xr-x  17 root root  3420 jun 16 13:25 dev
drwxr-xr-x 182 root root 12288 jun 16 19:19 etc
drwxr-xr-x   3 root root  4096 dic 21 10:08 home
lrwxrwxrwx   1 root root     7 dic 21 09:58 lib -> usr/lib
drwx------   2 root root 16384 dic 21 09:58 lost+found
drwxr-xr-x   3 root root  4096 dic 21 09:58 media
drwxr-xr-x   3 root root  4096 feb 28 12:01 mnt
drwxr-xr-x   4 root root  4096 may 20 10:09 opt
dr-xr-xr-x 306 root root     0 jun 14 09:31 proc
drwx------   7 root root  4096 jun 16 13:28 root
drwxr-xr-x  34 root root   840 jun 14 09:32 run
lrwxrwxrwx   1 root root     8 dic 21 09:58 sbin -> usr/sbin
drwxr-xr-x   3 root root  4096 dic 21 10:05 srv
dr-xr-xr-x  13 root root     0 jun 14 09:31 sys
drwxrwxrwt  18 root root  4096 jun 17 19:50 tmp
drwxr-xr-x  13 root root  4096 dic 21 10:03 usr
drwxr-xr-x  12 root root  4096 dic 21 10:02 var

Example 2

$ ls

hello.txt

$ cat hello1.txt

hello!

$ cb copiar hello.txt

✅ Copied one item

$ cb status

$ cb paste > hello2.txt

✅ Pasted 10B

$ cat hello2.txt

hello!

Example 3

$ cb add hello.zip

✅ Added one item

$ cb add hello.txt

✅ Added one item

Example 4

$ cb clear

✅ Cleared clipboard

Example 5

$ cb add hello.zip

✅ Added one item

$ cb add hello.txt

✅ Added one item

$ mkdir hello
$ cd hello
$ cb paste

✅ Pasted 2 files

$ ls

hello.txt hello.zip

You can find many more examples, tips and tricks and setup and configuration info on the documentation project site.