【发布时间】:2021-06-27 21:33:24
【问题描述】:
试图在终端的我的 cmd 行中添加颤振。我无法访问隐藏的 .bash_profile 文件。我可以使用 cmd/shift/ 来查看它。但我无法打开它。任何帮助表示赞赏。
【问题讨论】:
标签: flutter command-line terminal
试图在终端的我的 cmd 行中添加颤振。我无法访问隐藏的 .bash_profile 文件。我可以使用 cmd/shift/ 来查看它。但我无法打开它。任何帮助表示赞赏。
【问题讨论】:
标签: flutter command-line terminal
这可能是某些问题的重复,但无论如何它是: 有了这个,您可以将颤振添加到您的路径,请更改您的安装文件夹的路径。
export PATH="$PATH:`pwd`/flutter/bin"
如果你还想打开.bash_profile,你可以用你已经安装的一些文本编辑器来做:
touch ~/.bash_profile
open ~/.bash_profile
nano ~/.bash_profile
mate ~/.bash_profile
vim ~/.bash_profile
【讨论】:
~/.zshrc而不是~/.bash_profile
~/.zshrc 文件,然后运行例如nano ~/.zshrc