package: improve shellenv instructions

The existing instructions is perhaps not clear enough:

  To add Homebrew to your `PATH` run `brew shellenv` in your shell
  profile (e.g. `~/.bash_profile` or `~/.zprofile`)

Fixes #16803.
This commit is contained in:
Ruoyu Zhong 2024-03-04 06:48:34 +08:00
parent 53c1107fd2
commit a16d74cf77
No known key found for this signature in database

View File

@ -28,14 +28,20 @@ Homebrew is run entirely by unpaid volunteers. Please consider donating:\
\pard\tx220\tx720\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li720\fi-720\pardirnatural\partightenfactor0
\ls3\ilvl0\cf0 \ulnone {\listtext \uc0\u8259 }To add Homebrew to your
\f2 PATH
\f1 run
\f2 brew shellenv
\f1 in your shell profile (e.g.
\f1 , add to your shell profile (e.g.
\f2 ~/.bash_profile
\f1 or
\f2 ~/.zprofile
\f1 )\
{\listtext \uc0\u8259 }Run
\f1 ):\
\pard\tx940\tx1440\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li1440\fi-1440\pardirnatural\partightenfactor0
\ls3\ilvl1\cf0 {\listtext \uc0\u8259 }
\f2 eval "$(/opt/homebrew/bin/brew shellenv)"
\f1 on Apple Silicon\
\ls3\ilvl1{\listtext \uc0\u8259 }
\f2 eval "$(/usr/local/bin/brew shellenv)"
\f1 on Intel\
\pard\tx220\tx720\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li720\fi-720\pardirnatural\partightenfactor0
\ls3\ilvl0\cf0 {\listtext \uc0\u8259 }Run
\f2 brew help
\f1 to get started\
{\listtext \uc0\u8259 }Further documentation:\
@ -44,4 +50,4 @@ Homebrew is run entirely by unpaid volunteers. Please consider donating:\
\pard\tx940\tx1440\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li1440\fi-1440\pardirnatural\partightenfactor0
\cf0 \
\
}
}