prezto
prezto copied to clipboard
Command cache malfunctioning
Description
Shell says command not found if it was installed recently.
Expected behavior
This shouldn't happen
Actual behavior
└─❱❱❱ yarn install 130 ⏎ ─┘
Correct yarn to _yarn ? [nyae] %
└─❱❱❱ which yarn 130 ⏎ ─┘
/home/amokfa/.config/nvm/versions/node/v18.16.0/bin/yarn
└─❱❱❱ yarn install ─┘
Correct yarn to _yarn ? [nyae]
Steps to Reproduce
See above
Versions
- Prezto commit: da87c79b3a35f5a4a504ea331e9ec52b4f786976
- ZSH version: 5.8.1
- OS information: popos
If it's been installed recently (generally the current shell), this is expected behavior. You can tell zsh to re-create this cache by using hash -r
. I hope this helps! Please let me know if that doesn't work for you.
thanks a lot. however, I recently moved to prezto from oh my zsh and didn't remember that happening with their setup.
Good to know! If we have the time we could look into how they do it.