saga
saga

Reputation: 2113

Finding out where a function was defined in zsh

Is it possible for me to query the definition location of a function in zsh? Does zsh store such metadata about functions?

Upvotes: 1

Views: 421

Answers (1)

user1934428
user1934428

Reputation: 22237

Well, zsh stores the functions internally, but I guess you want to know where zsh read the function from. This can be shown by:

whence -v FUNCTIONNAME

Upvotes: 6

Related Questions