Skip to content

Commit

Permalink
macOS: More compact instructions to install Homebrew (#684)
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman authored Aug 20, 2023
1 parent a789e00 commit a3cde4f
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions source/computer/macos-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,29 +64,24 @@ Homebrew 的安装脚本及相关资源托管在 [GitHub](https://github.com/)
其他软件速度太慢。因而,Homebrew 的安装说明分为国内和国外两个版本。
读者应根据自己所处的地理位置使用相应的安装说明。

:::::{tab-set}

::::{tab-item} 国内用户

:::{note}
针对国内用户的 Homebrew 安装和配置指南来自于 <https://brew.idayer.com/>
:::

打开终端,执行如下命令,并根据终端提示进行操作,以安装 Homebrew:

打开终端,执行如下命令,并根据终端提示进行操作,以安装 Homebrew。
::::{tab-set}
:::{tab-item} 国内用户
```
$ /bin/bash -c "$(curl -fsSL https://gitee.com/ineo6/homebrew-install/raw/master/install.sh)"
```
::::
:::

:::{tab-item} 国外用户
打开终端,执行如下命令,并根据终端提示进行操作,以安装 Homebrew:

```
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```
:::
:::::
::::

:::{note}
针对国内用户的 Homebrew 安装和配置指南来自于 <https://brew.idayer.com/>
:::

:::{note}
Homebrew 以及通过 Homebrew 安装的所有软件包都会被安装到特定目录下,
Expand Down Expand Up @@ -117,7 +112,7 @@ $ brew uninstall xxx
```

:::{tip}
Homebrew 用户也可以访问网站 <https://formulae.brew.sh/> 查看软件包
Homebrew 用户也可以访问网站 <https://formulae.brew.sh/> 查看和搜索可安装的软件包
:::

:::{dropdown} Homebrew 相关名词解释
Expand Down

0 comments on commit a3cde4f

Please sign in to comment.