Expose mise shims in zshenv - #568
Open
shunk031 wants to merge 1 commit into
Open
Conversation
Co-Authored-By: Claude <noreply@anthropic.com>
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.
Why
Remote and non-interactive Zsh sessions read
.zshenvbut do not source.zshrc, so commands that depend on mise shims can fail before the interactive shell configuration runs. Sourcing.zshrcis too broad for these contexts because it can load prompt and plugin setup.What Changed
home/dot_config/exact_shell/mise.zshstartup helper that prepends~/.local/binand~/.local/share/mise/shimsonly when the standalone mise binary exists.home/dot_zshenvafter~/.zshenv_private, then clean up helper variables.tests/install/common/mise.bats, including absent mise, shim exposure, duplicate prevention, private env ordering, and helper variable cleanup.Interactive Zsh activation in
dot_zprofileand plugin/prompt setup remain unchanged.Validation
Inspect the diff for whitespace errors.
Parse the updated Zsh startup files.
Parse existing Bash mise startup files.
Run shellcheck through mise for the Bash startup files.
mise exec -- shellcheck install/common/mise.sh home/dot_config/exact_shell/mise.bashSmoke-test a minimal non-interactive Zsh environment with fake
miseandchezmoishim executables.Bats tests were not run locally per repository policy; GitHub Actions should validate them.