After copying a new executable to PATH, bash autocompletion for that command kicks in no problem, but zsh needs to be restarted.
How do I nudge zsh autocompletion to pick it up without restarting the shell?
Can it pick it up automatically?
zsh
After copying a new executable to PATH, bash autocompletion for that command kicks in no problem, but zsh needs to be restarted.
How do I nudge zsh autocompletion to pick it up without restarting the shell?
Can it pick it up automatically?
Best Answer
How do I nudge zsh autocompletion to pick it up
Use
rehash
:rehash
re-computes the internal hash table of the contents of directories listed in the path environment variable to account for new commands added.Source zsh - Persistent rehash