dyuri / xontrib-langenv

pyenv integration for xonsh
MIT License
12 stars 3 forks source link

update commands cache if base not found and try again #20

Closed eugenesvk closed 1 year ago

eugenesvk commented 1 year ago

but only for the first time

Sometimes can't find an existing command because commands cache isn't refreshed yet (not sure when exactly xonsh does that), so added a non-lazy search that auto-forces the refresh the first time we can't find any command (subsequently it's assumed that the cache is fresh and the command is really missing, might be expensive to refresh cache on every command)