正在向~/.bashrc添加导出



我正在安装流项目,收到一条消息,要在我的bashrc中添加一些内容。不确定这是否重要,但我在macOS上。

这是一条信息:https://i.stack.imgur.com/EbP3j.png

~/flow
Add the following to your ~/.bashrc:
export SUMO_HOME="$HOME/sumo_binaries/bin"
export PATH="$SUMO_HOME:$PATH"

我也查看了其他线程,我手动添加了它;echo>gt;~/。bashrc";方法它肯定在txt文件中。谢谢

编辑:问题没有弄清楚,但我试着把导出。。。到我的.bashrc文件中,但我试图安装的东西没有意识到我已经完成了。

验证使用导出的内容

export -p

根据帮助

export: export [-nf] [name[=value] ...] or export -p
NAMEs are marked for automatic export to the environment of
subsequently executed commands.  If the -f option is given,
the NAMEs refer to functions.  If no NAMEs are given, or if `-p'
is given, a list of all names that are exported in this shell is
printed.  An argument of `-n' says to remove the export property
from subsequent NAMEs.  An argument of `--' disables further option
processing.

最新更新