Iterm session exiting when using cache
JoeWoodward opened this issue · 7 comments
JoeWoodward commented
I've just installed zpm and had to debug this message
Usage: add-zsh-hook hook function
Valid hooks are:
chpwd precmd preexec periodic zshaddhistory zshexit zsh_directory_name
I have found that if I delete the cache the terminal works correctly and doesn't exit. Any sessions after this one will show the error above and then exit. I think it might be something to do with autoloading add-zsh-config
JoeWoodward commented
In fact, maybe it's this line that is generated for the cached .zsh file
add-zsh-hook -d background _ZPM_post_fn
background is not a valid hook
JoeWoodward commented
Couldn't a heredoc be used here to really cleanup that echo statement a lot too?
JoeWoodward commented
Ok, so background is added with the zpm-zsh/background plugin but doesn't seem to be loaded in a cached session
grigorii-horos commented
@JoeWoodward Hi, I fixed it. try to update zpm from git
JoeWoodward commented
So fast! Thank you
grigorii-horos commented
@JoeWoodward It works?
JoeWoodward commented
Yes, thank you