K
K
Konstantin Rudenkov2015-11-05 21:15:33
zsh
Konstantin Rudenkov, 2015-11-05 21:15:33

How to make zsh autocompletion understand freshly installed programs?

Hello.
For once I rearranged my OSX, and install zsh from homebrew accordingly. Put oh-my-zsh on top, and made a fresh setup.
But I ran into the following problem: when installing a new program, their homebrew does not see the program until I restart the terminal. That is, from $ PATH it launches fine, but it does not see auto-completion. What did I forget to do?
PS A lot of time ago, this problem was somehow easily fixed, but I don’t remember how at all. Either Google doesn't help...or my question is wrong.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Khomutov, 2020-01-09
@Corpsee

Add to your ~/.zshrc :
zstyle ':completion:*' rehash true

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question