5

I peeked in my .zprofile and the contents are:

eval "$(/opt/homebrew/bin/brew shellenv)"
eval
eval "$(/opt/homebrew/bin/brew shellenv)"

That seems transparently silly (lines 2-3 seem pointless), but in the spirit of Chesterton's fence... Is there any reason to keep this as-is?

3
  • Is anything else in your .zprofile? Commented Mar 11 at 3:13
  • No, the three lines constitute the whole file Commented Mar 11 at 7:52
  • 2
    Would guess that some program added it without any guard to see if it was already present. Usually programs are better about at least leaving a comment that they did so e.g. # installed by such-and-such. Commented Mar 11 at 11:47

1 Answer 1

7

I would remove the last two lines.

Don’t overthink this one as it won’t do good things to your $PATH.

1
  • 2
    Got me to check out what the eval actually does, and taught me about the meaning of PATH_HELPER_ROOT for /usr/libexec/path_helper. Basically it tells path_helper to look at /opt/homebrew/etc/paths instead of /etc/paths. Commented Mar 10 at 18:19

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.