[zsh] add function to locate hs type and function defs