Skip to content

p

Usage
p [args...]

Outputs clipboard contents to stdout. Uses wl-paste on Wayland, xclip on X11, or win32yank on WSL2. Supports -h/--help for usage info.

-h, --help Show usage help
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
p | grep foo
p > file.txt

Dependencies: _fish_clipboard_paste

Used by: edit