Skip to content

paste

Usage
paste [args...]

Outputs clipboard contents to stdout. Uses wl-paste on Wayland, xclip on X11, or win32yank on WSL2.

args... Arguments forwarded to the clipboard tool
0 Clipboard contents read successfully
1 No supported clipboard tool found

The clipboard contents, printed to stdout

Terminal window
paste > file.txt

Dependencies: _fish_clipboard_paste