broot --install followed by br asks to install again
texastoland opened this issue · comments
Texas Toland commented
My .zshrc
(on Mac) starts with:
[[ ! -e $XDG_CONFIG_HOME/broot/launcher/bash/br ]] && broot --install
source "$XDG_CONFIG_HOME/broot/launcher/bash/br"
But the first time I run br
it asks:
Broot should be launched using a shell function.
This function most notably makes it possible to cd from inside broot
(see https://dystroy.org/broot/install-br/ for explanations).
Can I install it now? [Y/n]
The cause appears to be the implementation checking for $XDG_CONFIG_HOME/broot/launcher/installed-vX
but broot --install
doesn't include it.
Denys Séguret commented
This should be fixed by #842
Tests welcome
Texas Toland commented
Trying now! I'll confirm within the PR 🙏🏼