Quickly access your clipboard on the command line, on any platform.
- Any terminal on any OS that supports the OSC 52 as described by XTerm spec
- Linux/BSD - X11 (
xclip) - Linux/BSD - Wayland (
wl-clipboard) - Android - Termux (
termux-clipboard-set,termux-clipboard-get)
Use the default or clip package in your config.
# Try
nix shell github:nativerv/clip
nix shell github:nativerv/clip --command yank
nix shell github:nativerv/clip --command put
# Install statefully
nix profile install github:nativerv/clipxclip,wl-clipboardortermux(depending on platform): clipboard accessimagemagick: image conversion to PNG to yank images
yank [-p] [file]
Yanks specified file to the system clipboard selection.
If no file is specified, uses standard input instead.
-p,--primaryyanks to the system primary selection instead if available on the platform--helpshow usage
DEBUGif set, print extra info to standard error
put [-p] [-t TYPE]
Puts the contents of system clipboard selection to the standard output.
-p,--primaryputs to the primary selection instead if available on the platform-t,--typespecify MIME type--helpshow usage
DEBUGif set, print extra info to standard error