Skip to content

y

Usage
y [text...]

Copies text to the system clipboard using wl-copy (Wayland), xclip (X11), or win32yank (WSL2). Reads from stdin when no arguments are given.

text Text to copy; reads from stdin if omitted
0 Text copied to clipboard
1 No clipboard provider found
Terminal window
y "hello world"
ls | y
cat file.txt | y

Dependencies: _fish_clipboard_copy