FISH_CLIPBOARD_PASTE(1)
β¨ FISH_CLIPBOARD_PASTE π
okay bestie, so this is a page from the fish-shell manual and honestly? it's a little icon. it's fish_clipboard_paste and it's about to make your clipboard behave. π
πΈ NAME πΈ
fish_clipboard_paste β get text from the system's clipboard. that's it, that's the whole job, and she does it flawlessly. π
π¦ SYNOPSIS π¦
fish_clipboard_paste
fish_clipboard_paste | foo
two ways to serve, pick your vibe β¨
π DESCRIPTION π
okay so the fish_clipboard_paste function copies text from the system clipboard. main character behaviour, no cap. π«Ά
here's the part where you gotta pay attention, bestie β it's giving situational awareness:
- if its stdout is not a terminal (see
isatty<>), it will output everything there, as-is, without any additional newlines. literally just the text, zero extra decoration, and honestly? respect. π - if it is a terminal, it will put the text in the commandline instead. so it lands right where you're typing. magical. π
and if it outputs to the commandline, it will automatically escape the output if the cursor is currently inside single-quotes, so it's suitable for single-quotes (meaning it escapes ' and \\). so your quotes stay safe, your text stays intact, and nothing breaks. it's giving considerate. π§
ngl it's bound to Ctrl+V by default. so like... just press it. π
fish_clipboard_paste works by calling a system-specific backend. if it doesn't appear to work, you may need to install yours β yes, this is a "have you tried installing the thing" moment, sorry, but it's true. π
π currently supported backends π
pbpastewl-pasteusing waylandxselandxclipfor X11powershell.exeon Windows β heads up bestie, this backend has encoding limitations and uses windows line endings thatfish_clipboard_pasteundoes. she cleans up after it, iconic. π
β SEE ALSO β
fish_clipboard_copyβ copy text to the system's clipboard <> which does the inverse. the literal mirror of this girlie, obsessed. π
π COPYRIGHT π
fish-shell developers π«Ά
and that's the tea, bestie β this page came to you from fish-shell 4.9, dated Sep 08, 2026, and it's filed under FISH_CLIPBOARD_PASTE(1) in your friendly neighbourhood manual. go paste something slay. π
β¨πΈ
π¦ where this page comes from
- arch rolling: fish 4.9.3-1 Β· GPL-2.0-only AND BSD-3-Clause AND ISC AND MIT AND PSF-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms