Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command cache malfunctioning #2038

Open
amokfa opened this issue Apr 22, 2023 · 3 comments
Open

Command cache malfunctioning #2038

amokfa opened this issue Apr 22, 2023 · 3 comments

Comments

@amokfa
Copy link

amokfa commented Apr 22, 2023

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: da87c79
  • ZSH version: 5.8.1
  • OS information: popos
@belak
Copy link
Collaborator

belak commented Apr 22, 2023

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.

@amokfa
Copy link
Author

amokfa commented Apr 22, 2023

thanks a lot. however, I recently moved to prezto from oh my zsh and didn't remember that happening with their setup.

@belak
Copy link
Collaborator

belak commented Apr 22, 2023

Good to know! If we have the time we could look into how they do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants