OPEN(1)

๐Ÿฆ‹ OPEN(1) โ€” the fish-shell glow-up ๐Ÿฆ‹

okay so real talk, this one's from fish-shell and it's genuinely the laziest-in-the-best-way little function you'll ever meet. it's short, it's sweet, it hands your files off to whatever app your computer thinks is cute today. let's get into it ๐Ÿ’…


โœจ NAME โœจ

open โ€” open file in its default application

like, that's it. that's the whole brand. you point at a file, the file opens in the app that owns it. no cap ๐Ÿซถ


๐ŸŒธ SYNOPSIS ๐ŸŒธ

open FILES ...

you give it FILES, plural, as many as your heart desires. queen behavior honestly ๐Ÿ‘‘


๐Ÿ’– DESCRIPTION ๐Ÿ’–

open opens a file in its default application, and it does it by picking the appropriate tool for the operating system you're on. it's adaptable, it's flexible, it's giving main character energy across platforms ๐ŸŒˆ

heads up though, bestie โ€” on GNU/Linux this whole thing requires the common but optional xdg-open utility, which comes from the xdg-utils package. so if it's not there, the vibe check fails. not a bug, just a dependency situation ๐Ÿ˜ญ

also (and this is the important part so listen up ๐Ÿ™ˆ): this function will not be used if a command by this name already exists โ€” which is literally the case on macOS or Haiku. so on those systems there's already a native open sitting there living its life, and fish is not about to step on its turf. respectful. iconic. ๐Ÿ’€


๐ŸŽ€ EXAMPLE ๐ŸŽ€

open *.txt

read it and weep: open *.txt opens all the text files in the current directory using your system's default text editor. every single one. all at once. go off ๐Ÿ”ฅ


fish-shell developers โ€” they made it, we stan them ๐Ÿงš๐Ÿ’œ


and that's the whole page, bestie, no notes ๐Ÿ“ as always, this gorgeous lil snippet is fish-shell version 4.9, dated Sep 08, 2026, brought to you with love by the fish-shell developers โ€” go open something fun, you've earned it ๐Ÿ’…โœจโญ

๐Ÿ“ฆ 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