mirror of
https://gitee.com/ineo6/homebrew-install.git
synced 2025-04-06 03:58:05 +08:00
fix: 修复脚本中符号问题
This commit is contained in:
parent
3d17f319e9
commit
a0a39e65d8
@ -55,14 +55,14 @@ Use '--' to separate paths from revisions, like this:
|
|||||||
zsh
|
zsh
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
echo export PATH=/opt/homebrew/bin:$PATH >> ~/.zprofile
|
echo export PATH=/opt/homebrew/bin:$PATH >> ~/.zprofile
|
||||||
source ~/.zprofile
|
source ~/.zprofile
|
||||||
```
|
```
|
||||||
|
|
||||||
bash
|
bash
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
echo export PATH=/opt/homebrew/bin:$PATH >> ~/.bash_profile
|
echo export PATH=/opt/homebrew/bin:$PATH >> ~/.bash_profile
|
||||||
source ~/.bash_profile
|
source ~/.bash_profile
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -71,14 +71,14 @@ source ~/.bash_profile
|
|||||||
zsh
|
zsh
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
echo export PATH=/usr/local/bin:$PATH >> ~/.zprofile
|
echo export PATH=/usr/local/bin:$PATH >> ~/.zprofile
|
||||||
source ~/.zprofile
|
source ~/.zprofile
|
||||||
```
|
```
|
||||||
|
|
||||||
bash
|
bash
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
echo export PATH=/usr/local/bin:$PATH >> ~/.bash_profile
|
echo export PATH=/usr/local/bin:$PATH >> ~/.bash_profile
|
||||||
source ~/.bash_profile
|
source ~/.bash_profile
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -40,14 +40,14 @@ PS: 终端类型根据执行命令`echo $SHELL`显示的结果:
|
|||||||
从`macOS Catalina`(10.15.x) 版开始,`Mac`使用`zsh`作为默认`Shell`,使用`.zprofile`,所以对应命令:
|
从`macOS Catalina`(10.15.x) 版开始,`Mac`使用`zsh`作为默认`Shell`,使用`.zprofile`,所以对应命令:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
echo export PATH=/opt/homebrew/bin:$PATH >> ~/.zprofile
|
echo export PATH=/opt/homebrew/bin:$PATH >> ~/.zprofile
|
||||||
source ~/.zprofile
|
source ~/.zprofile
|
||||||
```
|
```
|
||||||
|
|
||||||
如果是`macOS Mojave` 及更低版本,并且没有自己配置过`zsh`,使用`.bash_profile`:
|
如果是`macOS Mojave` 及更低版本,并且没有自己配置过`zsh`,使用`.bash_profile`:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
echo export PATH=/opt/homebrew/bin:$PATH >> ~/.bash_profile
|
echo export PATH=/opt/homebrew/bin:$PATH >> ~/.bash_profile
|
||||||
source ~/.bash_profile
|
source ~/.bash_profile
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -111,6 +111,6 @@ source ~/.bash_profile
|
|||||||
|
|
||||||
具体镜像设置参考[mac 安装教程](/guide/start/#part3)=>"设置镜像"一节。
|
具体镜像设置参考[mac 安装教程](/guide/start/#part3)=>"设置镜像"一节。
|
||||||
|
|
||||||
**如果觉得教程有用,欢迎多多分享宣传~**
|
**如果觉得教程有用,欢迎多多分享宣传~**
|
||||||
|
|
||||||
[mac]:[https://zhuanlan.zhihu.com/p/90508170][github]:[https://github.com/ineo6/homebrew-install]
|
[mac]:[https://zhuanlan.zhihu.com/p/90508170][github]:[https://github.com/ineo6/homebrew-install]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user