END(1)

🌸 NAME 🌸

okay bestie, this is END(1) from the fish-shell manual πŸ’– and the main character is end β€” end a block of commands. slay.

✨ SYNOPSIS ✨

here's the vibe, fr fr:

begin
    [COMMANDS ...]
end

function NAME [OPTIONS]; COMMANDS ...; end
if CONDITION; COMMANDS_TRUE ...; [else; COMMANDS_FALSE ...;] end
switch VALUE; [case [WILDCARD ...]; [COMMANDS ...]; ...] end
while CONDITION; COMMANDS ...; end
for VARNAME in [VALUES ...]; COMMANDS ...; end

πŸ’… DESCRIPTION πŸ’…

so the end keyword closes a block of commands started by one of these iconic commands:

  • 🌱 begin β€” to start a block of commands.
  • πŸ› οΈ function β€” to define a function.
  • πŸŽ€ if, switch β€” to conditionally execute commands.
  • πŸ” while, for β€” to perform commands multiple times.

and bestie, listen: no cap, the end keyword does not change the current exit status. Instead, the status after it will be the status returned by the most recent command. periodt. πŸ’…

fish-shell developers β€” that's the copyright crew, and we're obsessed. πŸ’–

byeee 🫢 this was END(1) from the fish-shell manual, version 4.9, dated Sep 08, 2026 β€” huge kisses to the fish-shell developers, mwah πŸ’‹πŸ¦‹

πŸ“¦ 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