whence

A Zsh builtin to indicate how a command would be interpreted. More information: https://keith.github.io/xcode-man-pages/whence.1.html.

whence "command"

whence -v "command"

whence -c "command"

whence -ca "command"

whence -p "command"