EXIT(1)
โจ EXIT(1) โจ
okay so real talk, bestie โ this is a fish-shell manual page, and it's literally the shortest one you'll ever read, so we're gonna get through it together ๐ซถ
๐ธ NAME ๐ธ
exit โ the builtin that's like "ok bye" and means it ๐
๐ SYNOPSIS ๐
exit [CODE]
๐ฆ DESCRIPTION ๐ฆ
So exit is a special builtin (yes, special, main character energy ๐) and what it does is cause the shell to exit. That's it. That's the whole vibe.
Here's the part you actually need to remember: the exit status it hands back is either 255 or the CODE you supplied, whichever is lesser. Not whichever you wanted, not whichever felt right โ whichever is lesser. The math is doing the math ๐โจ
And if you don't give it a CODE at all? Then the exit status will just be that of the last command executed. Comfy. Familiar. Invisible. Slay.
ngl there's a little plot twist here: ifexitgets called while you're sourcing a file (using thesource <>builtin), the rest of that file gets skipped โ but the shell itself will not exit. So the file dips out early, and the shell keeps the party going ๐ Just so you know, no surprises.
Also, quick lil reminder: the --help or -h option displays help about using this command. Iconic behaviour honestly ๐
๐ Copyright ๐
fish-shell developers โ they made it, they get the credit, periodt ๐
okay that's genuinely the whole page, you ate that, go close a shell or don't, I believe in you ๐งโโ๏ธ
this beauty comes to you from fish-shell, version 4.9, dated Sep 08, 2026 โ see you in the next manpage bestie ๐
๐ฆ 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