TYPE(1)
π TYPE(1) β the fish-shell glow-up
okay so bestie, welcome to type(1) from fish-shell β this is the fish builtin, and she's the one who tells you what a command actually is. Let's get into it β¨
πΈ NAME πΈ
type β locate a command and describe its type. literally her whole job, and she ate π
π¦ SYNOPSIS π¦
type [OPTIONS] NAME [...]
π DESCRIPTION π
β οΈ read this first, bestie: this page documents the fish builtintype. If you wanna see the docs for any non-fish version, runcommand man type. iykyk π
With no options, type tells you how each NAME would be interpreted if you used it as a command name. that's it. that's the vibe check π
The following options are available, and yes we're going through all of them π«Ά
β¨ OPTIONS β¨
-a,--allβ prints all of the possible definitions of the specified names. all of them, not just the first one she finds π-s,--shortβ don't print function definitions when used with no options or with-a/--all. keeps it cute and brief π-f,--no-functionsβ suppresses function lookup. functions? not invited to this party π«-t,--typeβ printsfunction,builtin, orfileif NAME is a shell function, builtin, or disk file, respectively. one lil word, maximum clarity β-p,--pathβ prints the path to NAME if NAME resolves to an executable file inPATH<#envvar-PATH>, the path to the script containing the definition of the function NAME if NAME resolves to a function loaded from a file on disk (i.e. not interactively defined at the prompt), or nothing otherwise. yes she's thorough like that π₯-P,--force-pathβ returns the path to the executable file NAME, presuming NAME is found in thePATH<#envvar-PATH> environment variable, or nothing otherwise.--force-pathexplicitly resolves only the path to executable files inPATH<#envvar-PATH>, regardless of whether NAME is shadowed by a function or builtin with the same name. no shadowing drama, she's looking at the filesystem and only the filesystem π-q,--queryβ suppresses all output; this is useful when testing the exit status. for compatibility with old fish versions this is also--quiet. silent but observant π€«--colorWHEN β controls when to use syntax highlighting colors when printing function definitions. WHEN can beauto(the default, colorize if the output is a terminal <>) ,always, ornever. aesthetic decisions are important π-h,--helpβ displays help about using this command. the classic π«Ά
π the mutual exclusivity bit (important!!)
The -q, -p, -t and -P flags (and their long flag aliases) are mutually exclusive. Only one can be specified at a time. pick a lane bestie, she can't do all four π
π EXIT STATUS π
type returns 0 if at least one entry was found, 1 otherwise, and 2 for invalid options or option combinations.
π¨ so like, 2 is the "girl what did you even type" code. don't be that person.
π EXAMPLE π
>_ type fg
fg is a builtin
see? iconic. instant clarity. no notes π§
π Copyright π
fish-shell developers β appreciate them fr fr π«Ά
and that's the whole page, bestie!! β¨ remember: this is the fish builtin, use command man type for the other ones, and one mutually-exclusive flag at a time please π
fish-shell β version 4.9 β dated Sep 08, 2026 π
mwah, go describe some commands π¦
π¦ 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