Repository navigation
Conversation
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the documentation update clarifying Flox auto-activation behavior.
No open issues 🎉
What changed in this PR
Clarifies the distinction between shell integration and directory permission in Flox auto-activation, helping readers avoid unintentionally activating the default environment in every shell.
Changes:
- Explains that the startup commands install the prompt hook and keep the default environment active outside allowed directories.
- Documents the absence of a public hook-only initializer in Flox 1.19.4.
- Uses the canonical
allowlistspelling and adds an explicit directory-permission example.
Review was limited to the supplied diff; no automated checks were run.
| File | Description |
|---|---|
concepts/auto-activation.mdx |
Clarifies startup behavior, directory-only limitations, and permission setup. |
Review effort: Balanced
smorin
marked this pull request as draft
November 12, 2026 00:13
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The auto-activation guide currently presents
eval "$(flox activate -D)"as shell-hook setup without explaining that it also activates the default environment in every new shell. A reader seeking directory-only activation can follow the guide and end up with an environment active outside its directory.This change separates shell integration from directory permission, states the startup command's always-on effect, and documents the public-initializer gap in Flox 1.19.4. It also adds an explicit directory allow example and uses the canonical
allowlistspelling.allowedremains an accepted compatibility alias; this is not a broken-command fix.Verification
flox/docsagainstorigin/mainbefore analysis (base73a04f8).v1.19.4,45038aa8eb7c84ccb678fc5f67e829b3867f66b3).git diff --check, Bash syntax checks for all eight Bash examples, eight internal-link checks, and MDX component-balance checks passed.Recommendation for the shell integration
The native directory-only engine is shipped. The public standalone initializer is missing: hook registration is currently emitted by activation, while
hook-envis explicitly an internal interface. Expose the existing shell-hook generator through a supported public command, for example a futureflox hook zsh, and then document itsevalas the directory-only setup. This proposed command does not currently exist, and this PR does not document it as shipped or publish the internal registration snippet as a supported API.Implementation references: native Zsh hook, hook registration during activation, internal command classification.