FISH_CLIPBOARD_COPY(1)
β¨ NAME β¨
fish_clipboard_copy β copy text to the system's clipboard, bestie, that's literally it π
(this is a page from the fish-shell manual, section 1, and it's about to be your new fave π«Ά)
πΈ SYNOPSIS πΈ
fish_clipboard_copy
foo | fish_clipboard_copy
π DESCRIPTION π
okay so. the fish_clipboard_copy function copies text to the system clipboard. iconic behavior, no notes β¨
if stdin is not a terminal (see isatty), it will read all the input from there and copy it. if it is a terminal, it will use the current commandline instead β or the current selection, if there is one π
it's bound to Ctrl+X by default. iykyk π
how does it actually do it? fish_clipboard_copy works by calling a system-specific backend. so if it doesn't appear to work for you, ngl, you may need to install yours π
currently supported backends are:
pbcopywl-copyusing waylandxselandxclipfor X11clip.exeon Windows- the OSC 52 clipboard sequence, which your terminal might support π
lowkey important: that last one is the terminal thing β it only works if your terminal supports it, so no cap, don't come for me if yours doesn't π
π¦ SEE ALSO π¦
fish_clipboard_pasteβ get text from the system's clipboard, which does the exact inverse π
π Copyright π
fish-shell developers π
and that's a wrap, bestie π this was the fish-shell manual, fish_clipboard_copy(1), version 4.9, dated Sep 08, 2026 β go forth and copy things β¨ππ¦
π¦ 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