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
It might worth making a less hacky / more permanent fix (there are a few options I can think of but I am not confident enough on which is the right fix).
(For context, the reason I came across this was that I recently updates my dotfiles install.sh to automatically install hermit.
The standard shell-hooks command is
eval "$(test -x $HOME/bin/hermit && $HOME/bin/hermit shell-hooks --print --zsh)"
https://cs.github.com/cashapp/hermit/blob/18405e856a5c566d5e5f8d0b8b0f954ce192aec0/shell/zsh.go#L43
This command prints errors when it's run if the cache directory has been deleted.
This is because the
shell-hooks --print
command prints some extraneous information if the cache has been deleted.I have a bit of a hacky solution which is to run
hermit version > /dev/null
first which forces the install before running theshell-hooks
command.It might worth making a less hacky / more permanent fix (there are a few options I can think of but I am not confident enough on which is the right fix).
(For context, the reason I came across this was that I recently updates my dotfiles install.sh to automatically install hermit.
MatthewDolan/dotfiles@e472587
Mostly, it worked perfectly. Except that there is a bug when hermit tries to print shell-hooks if the cache has been cleared.)
The text was updated successfully, but these errors were encountered: