Skip to content

๐Ÿš€ Cut, copy, and paste anything, anywhere, all from the terminal! ๐Ÿ˜„ Save time and effort the easy way.

License

Notifications You must be signed in to change notification settings

Sondro/Clipboard

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Clipboard Banner

โœจ๐Ÿš€ Save time and effort the easy way with Clipboard. ๐Ÿ–๏ธ๐ŸŒด

Before, you've always had to think about where exactly you want to move things, which multiplied your mental workload and made many scenarios totally impractical.

Now, have a powerful clipboard to use anywhere in the terminal to cut, copy, and paste things with, just like a GUI!

  • Easy. Friendly to newbies and power users.
  • Breezy. Zero configuration needed to use.
  • Beautiful. Breaks the rules to look pretty.
  • Unified. Functions exactly the same everywhere.
  • Compatible. Works on anything that supports C++20.
  • Scriptable. Embed it right into your own programs.
  • Universal. Supports English, espaรฑol, portuguรชs, and Tรผrkรงe.
  • Integrated. Connects with many native GUI clipboards.
  • Tiny. Mere tens of kilobytes in size.
  • FOSS. 100% free and open-source.

Clipboard Demo Quick Installation

curl -sSL https://github.com/Slackadays/Clipboard/raw/main/src/install.sh | sh
(Invoke-WebRequest -UseBasicParsing https://github.com/Slackadays/Clipboard/raw/main/src/install.ps1).Content | powershell

Premade Builds

Packaging status

You can also download Clipboard directly from GitHub Actions.


Install Manually

Get the latest release instead by adding --branch 0.3.2 right after git clone.... Change the system installation prefix by adding -DCMAKE_INSTALL_PREFIX=/custom/prefix to cmake ...

git clone https://github.com/Slackadays/Clipboard 
cd Clipboard/build
cmake -DCMAKE_BUILD_TYPE=MinSizeRel ..
cmake --build .
cmake --install .

Uninstall

Remove all the files in install_manifest.txt. If you're not using Windows, you can also do xargs rm < install_manifest.txt.

How To Use

You can substitute cb for clipboard in all commands. 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.

Examples

clipboard copy contacts/JohnSmith NuclearLaunchCodes.pdf
clipboard cut69 MyDirectory
cb cp420 bar.conf NotAVirus.pdf.mp3.exe baz.txt
cb show420
cb add69 SomeFile
clipboard clr

Copy โ€ƒ clipboard ([--]copy|[-]cp)[(num)|_(id)] (file) [files] or (something) | clipboard [([--]copy|[-]cp)][(num)|_(id)]


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


Paste โ€ƒ clipboard ([--]paste|[-]p)[(num)|_(id)] or clipboard [([--]paste|[-]p][(num)|_(id)] | (something) or clipboard [([--]paste|[-]p)][(num)|_(id)] > (some file)


Add Contents โ€ƒ clipboard ([--]add|[-]ad)[(num)|_(id)] (file|text) [files] or (something) | clipboard [([--]add|[-]ad)][(num)|_(id)]


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


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


Show Help Message โ€ƒ clipboard (-h|[--]help)


Check Clipboard Status โ€ƒ clipboard

Simple Configuration

Environment Variables

CI โ€ƒ Set this to anything 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.


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


CLIPBOARD_PERSISTDIR โ€ƒ Set this 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 to anything to make Clipboard always use persistent clipboards.


CLIPBOARD_NOGUI โ€ƒ Set this to anything to disable integration with GUI clipboards.


CLIPBOARD_SILENT โ€ƒ Set this to anything to disable progress and confirmation messages from Clipboard.


FORCE_COLOR โ€ƒ Set this to anything to make Clipboard always show color regardless of what you set NO_COLOR to.


NO_COLOR โ€ƒ Set this to anything to make Clipboard not show any colors.


Flags

--clipboard (clipboard), -c (clipboard) โ€ƒ Add this to choose which clipboard you want to use.


--fast-copy, -fc โ€ƒ Add this 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.

Need Help?

Go to the Clipboard Wiki for more information, ask your questions in Clipboard Discussions, or join our Discord group! Discord Support

Thank You!

Thank you to all the contributors who have helped make Clipboard great.

About

๐Ÿš€ Cut, copy, and paste anything, anywhere, all from the terminal! ๐Ÿ˜„ Save time and effort the easy way.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 92.6%
  • CMake 3.5%
  • Shell 2.6%
  • Other 1.3%