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/clip
xclip
,wl-clipboard
ortermux
(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
,--primary
yanks to the system primary selection instead if available on the platform--help
show usage
DEBUG
if set, print extra info to standard error
put [-p] [-t TYPE]
Puts the contents of system clipboard selection to the standard output.
-p
,--primary
puts to the primary selection instead if available on the platform-t
,--type
specify MIME type--help
show usage
DEBUG
if set, print extra info to standard error