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 πŸ’€

  • pbpaste
  • wl-paste using wayland
  • xsel and xclip for X11
  • powershell.exe on Windows β€” heads up bestie, this backend has encoding limitations and uses windows line endings that fish_clipboard_paste undoes. 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. πŸ’œ

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