Default environment activation in docs tutorial should look different IMO

Hello,
This is the suggested line to add to .zshrc / .bashrc to start the default environment.

eval "$(flox activate -m run)"

(Reference)

I think you should change it in the docs to:

eval "$(flox activate -d "$HOME" -m run)"

because the original line assumes that the user opens the terminal in $HOME.

This may not always be the case. Then I either get an error because no .flox folder is there, or it would start the local Flox environment instead of the default one, requiring me to manually start the default environment.

Or is there a good reason why it shouldn’t be like I suggest?

Hej, and welcome!

I think you’re right we could be more specific there.
Generally I believe we’ll default to the “default” env in many cases to avoid this issue, but activating other environments than the default one is probably unexpected.

Thanks for bringing this to our attention.