Skip to content

chore(homebrew): opt out of Homebrew 6.0.0 upgrade defaults - #25

Merged
lgw4 merged 1 commit into
mainfrom
chore/homebrew-6-upgrade-defaults
Jun 12, 2026
Merged

chore(homebrew): opt out of Homebrew 6.0.0 upgrade defaults#25
lgw4 merged 1 commit into
mainfrom
chore/homebrew-6-upgrade-defaults

Conversation

@lgw4

@lgw4 lgw4 commented Jun 12, 2026

Copy link
Copy Markdown
Owner

Summary

  • Set HOMEBREW_NO_ASK=1 to disable the new confirmation prompt introduced in Homebrew 6.0.0 before applying upgrades
  • Set HOMEBREW_NO_UPGRADE_AUTO_UPDATES_CASKS=1 to prevent brew upgrade from automatically upgrading casks that declare auto_updates true (also new in 6.0.0)
  • Applied across all three shell configurations: Bash, Zsh, and Fish

Test plan

  • Run chezmoi apply and verify both variables are present in the environment (env | grep HOMEBREW)
  • Run brew upgrade and confirm no confirmation prompt appears
  • Confirm casks with auto_updates true are not upgraded by brew upgrade

🤖 Generated with Claude Code

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>
Copilot AI review requested due to automatic review settings June 12, 2026 03:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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=1 across Zsh, Bash, and Fish configs to suppress the new Homebrew confirmation prompt.
  • Export HOMEBREW_NO_UPGRADE_AUTO_UPDATES_CASKS=1 across the same shells to try to prevent brew upgrade from upgrading auto_updates true casks.

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.

Comment thread private_dot_zprofile
Comment thread private_dot_bashrc
@lgw4
lgw4 merged commit f03c385 into main Jun 12, 2026
1 check passed
@lgw4
lgw4 deleted the chore/homebrew-6-upgrade-defaults branch June 12, 2026 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants