Force zsh to refresh remembered command paths.
Section: Activation issues
Refresh command hashing in zsh
bash
bash
rehashExplanation
Useful when a shell keeps remembering an old command location after activation.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Activation issues