p
Synopsis
Section titled “Synopsis”p [args...]Description
Section titled “Description”Outputs clipboard contents to stdout. Uses wl-paste on Wayland, xclip on X11, or win32yank on WSL2. Supports -h/--help for usage info.
Arguments
Section titled “Arguments”-h, --help |
Show usage help |
args... |
Arguments forwarded to the clipboard tool |
Exit Status
Section titled “Exit Status”0 |
Clipboard contents read successfully |
1 |
No supported clipboard tool found |
Returns
Section titled “Returns”The clipboard contents, printed to stdout
Example
Section titled “Example”p | grep foop > file.txtDependencies: _fish_clipboard_paste
Used by: edit