fix: 修复脚本中符号问题

This commit is contained in:
neo 2021-02-01 23:18:33 +08:00
parent 3d17f319e9
commit a0a39e65d8
2 changed files with 7 additions and 7 deletions

View File

@ -55,14 +55,14 @@ Use '--' to separate paths from revisions, like this:
zsh
```shell
echo export PATH=/opt/homebrew/bin:$PATH >> /.zprofile
echo export PATH=/opt/homebrew/bin:$PATH >> ~/.zprofile
source ~/.zprofile
```
bash
```shell
echo export PATH=/opt/homebrew/bin:$PATH >> /.bash_profile
echo export PATH=/opt/homebrew/bin:$PATH >> ~/.bash_profile
source ~/.bash_profile
```
@ -71,14 +71,14 @@ source ~/.bash_profile
zsh
```shell
echo export PATH=/usr/local/bin:$PATH >> /.zprofile
echo export PATH=/usr/local/bin:$PATH >> ~/.zprofile
source ~/.zprofile
```
bash
```shell
echo export PATH=/usr/local/bin:$PATH >> /.bash_profile
echo export PATH=/usr/local/bin:$PATH >> ~/.bash_profile
source ~/.bash_profile
```

View File

@ -40,14 +40,14 @@ PS: 终端类型根据执行命令`echo $SHELL`显示的结果:
`macOS Catalina`(10.15.x) 版开始,`Mac`使用`zsh`作为默认`Shell`,使用`.zprofile`,所以对应命令:
```shell
echo export PATH=/opt/homebrew/bin:$PATH >> /.zprofile
echo export PATH=/opt/homebrew/bin:$PATH >> ~/.zprofile
source ~/.zprofile
```
如果是`macOS Mojave` 及更低版本,并且没有自己配置过`zsh`,使用`.bash_profile`
```shell
echo export PATH=/opt/homebrew/bin:$PATH >> /.bash_profile
echo export PATH=/opt/homebrew/bin:$PATH >> ~/.bash_profile
source ~/.bash_profile
```
@ -111,6 +111,6 @@ source ~/.bash_profile
具体镜像设置参考[mac 安装教程](/guide/start/#part3)=>"设置镜像"一节。
**如果觉得教程有用,欢迎多多分享宣传**
**如果觉得教程有用,欢迎多多分享宣传~**
[mac]:[https://zhuanlan.zhihu.com/p/90508170][github]:[https://github.com/ineo6/homebrew-install]