Como eu faço o autocompletar do zsh para buscá-lo
Use rehash :
-
rehashre-calcula a tabela de hash interna do conteúdo dos diretórios listados na variável de ambiente path para considerar novos comandos adicionados.
Persistent rehash
Typically, compinit will not automatically find new executables in the
$PATH. For example, after you install a new package, the files in/usr/binwould not be immediately or automatically included in the completion. Thus, to have these new exectuables included, one would run:$ rehashThis 'rehash' can be set to happen automatically. Simply include the following in your zshrc:
~/.zshrc zstyle ':completion:*' rehash true