【发布时间】:2018-09-22 11:15:50
【问题描述】:
我有 macOS Sierra 版本 10.12.6
我尝试使用终端添加路径。我输入了source ~/.bash_profile,然后打开了一个文本文件并输入了我的路径。
但随后终端停止响应,bash 命令不再可识别。
如果我输入:source ~/.bash_profile 什么都不会发生。
如果我输入任何与环境相关的命令,则会显示错误消息:-bash: printenv: command not found
我该如何解决这个问题?
【问题讨论】:
标签: bash macos terminal path environment-variables