mirror of https://github.com/CrimsonTome/tldr.git
858 B
858 B
whence
A zsh builtin to indicate how a given command would be interpreted. More information: https://www.unix.com/man-page/OpenSolaris/1/whence/.
- Interpret
command
, with expansion if defined as analias
(similar to thecommand -v
builtin):
whence "{{command}}"
- Display type of
command
, with location if defined as a function, or binary (equivalent to thetype
andcommand -V
builtins):
whence -v "{{command}}"
- Same as above, except display content of shell functions instead of location (equivalent to
which
builtin):
whence -c "{{command}}"
- Same as above, but show all occurrences on command path (equivalent to the
where
builtin):
whence -ca "{{command}}"
- Search only the
PATH
forcommand
, ignoring builtins, aliases or shell functions (equivalent to thewhere
command):
whence -p "{{command}}"