Skip to content

install: explicitly set shellenv suffix if possible.#1067

Merged
MikeMcQuaid merged 1 commit intomainfrom
shellenv_suffix
Jan 8, 2026
Merged

install: explicitly set shellenv suffix if possible.#1067
MikeMcQuaid merged 1 commit intomainfrom
shellenv_suffix

Conversation

@MikeMcQuaid
Copy link
Copy Markdown
Member

This will avoid more error-prone autodetection in brew shellenv.

Related to Homebrew/brew#21374

Copilot AI review requested due to automatic review settings January 8, 2026 10:16
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request modifies the Homebrew installation script to explicitly set shell-specific suffixes for the brew shellenv command, avoiding error-prone autodetection. The change ensures that users are instructed to run the correct variant of brew shellenv based on their detected shell.

Key changes:

  • Added shellenv_suffix variable assignments for bash, zsh, fish, and default shells
  • Updated grep pattern to match any shellenv variant
  • Modified command instructions to include the appropriate shell-specific suffix

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread install.sh Outdated
Comment thread install.sh Outdated
This will avoid more error-prone autodetection in `brew shellenv`.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@MikeMcQuaid MikeMcQuaid merged commit 1fbd624 into main Jan 8, 2026
11 checks passed
@MikeMcQuaid MikeMcQuaid deleted the shellenv_suffix branch January 8, 2026 15:48
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.

3 participants