brew配置环境变量
时间: 2023-08-26 11:04:39 浏览: 135
要配置brew的环境变量,可以按照以下步骤进行操作:
1. 如果你使用的是bash作为默认的shell,可以执行以下命令来配置环境变量:
```shell
echo 'export PATH="/opt/homebrew/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile
```
这将会将brew的bin目录添加到你的bash配置文件中,并且加载配置文件使之生效。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [在mac中安装Homebrew以及配置环境变量](https://blog.csdn.net/qq_35366269/article/details/126065585)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文