mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 01:02:09 +02:00
whence: add page (#4021)
This commit is contained in:
parent
d1f0c8baf1
commit
eb83f0ee73
1 changed files with 23 additions and 0 deletions
23
pages/osx/whence.md
Normal file
23
pages/osx/whence.md
Normal file
|
@ -0,0 +1,23 @@
|
|||
# whence
|
||||
|
||||
> A zsh builtin to indicate how a given command would be interpreted.
|
||||
|
||||
- Interpret {{command}}, with expansion if defined as an `alias` (similar to the `command -v` builtin):
|
||||
|
||||
`whence {{command}}`
|
||||
|
||||
- Display type of {{command}}, with location if defined as a function, or binary (equivalent to the `type` and `command -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` for {{command}}, ignoring builtins, aliases or shell functions (equivalent to the `where` command):
|
||||
|
||||
`whence -p {{command}}`
|
Loading…
Add table
Reference in a new issue