whence
A Zsh builtin to indicate how a command would be interpreted. tldr-pages
On several platforms
Several platforms
Interpret command, with expansion if defined as an alias (similar to the command -v builtin)
whence "command"IdentifyDisplay type of command, with location if defined as a function or binary (equivalent to the type and command -V builtins)
whence -v "command"IdentifyDisplay type of command, with content of shell functions instead of location (equivalent to which builtin)
whence -c "command"IdentifyDisplay type of command, with content of shell functions and all occurrences on command path (equivalent to the where builtin)
whence -ca "command"IdentifySearch only the $PATH for command, ignoring builtins, aliases, or shell functions (equivalent to the where command)
whence -p "command"Identify