chore(homebrew): opt out of Homebrew 6.0.0 upgrade defaults - #25
Merged
Conversation
Set HOMEBREW_NO_ASK=1 to skip the new confirmation prompt before applying upgrades, and HOMEBREW_NO_UPGRADE_AUTO_UPDATES_CASKS=1 to prevent automatic upgrading of casks with auto_updates=true across Bash, Zsh, and Fish shell configurations. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the repository’s shell initialization files to opt out of new default behaviors introduced with Homebrew 6.0.0, aiming to keep upgrades non-interactive and prevent unintended cask upgrade behavior.
Changes:
- Export
HOMEBREW_NO_ASK=1across Zsh, Bash, and Fish configs to suppress the new Homebrew confirmation prompt. - Export
HOMEBREW_NO_UPGRADE_AUTO_UPDATES_CASKS=1across the same shells to try to preventbrew upgradefrom upgradingauto_updates truecasks.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| private_dot_zprofile | Adds Homebrew opt-out environment variables for Zsh login shells. |
| private_dot_config/private_fish/private_conf.d/private_00-path-base.fish.tmpl | Adds the same Homebrew opt-out environment variables for Fish on macOS. |
| private_dot_bashrc | Adds the same Homebrew opt-out environment variables for Bash when Homebrew is present. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Summary
HOMEBREW_NO_ASK=1to disable the new confirmation prompt introduced in Homebrew 6.0.0 before applying upgradesHOMEBREW_NO_UPGRADE_AUTO_UPDATES_CASKS=1to preventbrew upgradefrom automatically upgrading casks that declareauto_updates true(also new in 6.0.0)Test plan
chezmoi applyand verify both variables are present in the environment (env | grep HOMEBREW)brew upgradeand confirm no confirmation prompt appearsauto_updates trueare not upgraded bybrew upgrade🤖 Generated with Claude Code