You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for developing evalcache! I’m trying to improve my zsh startup time using your plugin but am struggling with setting it up correctly in my .zshrc. Specifically, I’d like to cache some commands that slow down the shell load time.
I’ve installed evalcache using oh-my-zsh by cloning it into the custom plugins folder and adding evalcache to my plugin list. However, I’m unsure how to modify my .zshrc to make full use of _evalcache.
Would it be possible for you to provide a demo or example configuration showing how to apply _evalcache to typical commands? Here’s an example of my current setup:
Unless I'm misreading, in your case the eval line that is slow is effectively: eval "$(/opt/anaconda3/bin/conda shell.zsh hook 2> /dev/null)"
I'm not sure if/how the redirecting stderr to /dev/null/ in your example changes things, but in a typical case you would simply rewrite as: _evalcache /opt/anaconda3/bin/conda shell.zsh hook 2> /dev/null
LMK if that works or if the redirection breaks it.
Hello,
Thank you for developing
evalcache
! I’m trying to improve myzsh
startup time using your plugin but am struggling with setting it up correctly in my.zshrc
. Specifically, I’d like to cache some commands that slow down the shell load time.I’ve installed
evalcache
usingoh-my-zsh
by cloning it into the custom plugins folder and addingevalcache
to my plugin list. However, I’m unsure how to modify my.zshrc
to make full use of_evalcache
.Would it be possible for you to provide a demo or example configuration showing how to apply
_evalcache
to typical commands? Here’s an example of my current setup:Questions:
_evalcache
to commands likeconda
initialization to ensure they’re cached?evalcache
usage in.zshrc
for common scenarios like initializingconda
, Powerlevel10k, or other plugins?Thank you for any guidance, and for a tool that could greatly improve my workflow!
The text was updated successfully, but these errors were encountered: