GithubHelp home page GithubHelp logo

richardsonjf / clipboard Goto Github PK

View Code? Open in Web Editor NEW

This project forked from slackadays/clipboard

0.0 1.0 0.0 9.56 MB

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

License: GNU General Public License v3.0

Shell 6.68% C++ 89.58% PowerShell 0.35% CMake 3.39%

clipboard's Introduction

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

Replace git clone with git clone --branch "0.2.0" to get the latest release (0.2.0). Otherwise, you will get the latest commit.

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

Change the installation prefix with the -DCMAKE_INSTALL_PREFIX flag.

cmake -DCMAKE_INSTALL_PREFIX=/CUSTOM/PREFIX .

Uninstall

xargs rm < install_manifest.txt

Add sudo to the beginning for Linux, macOS, all BSDs except OpenBSD, and OpenIndiana, and 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).


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 Contents โ€ƒ clipboard ([--]clear|[-]clr)


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.


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.

clipboard's People

Contributors

slackadays avatar zaryob avatar skeeto avatar davipb avatar derspyy avatar zoenglinghou avatar antiz96 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.