Macos mac上的bash_配置文件似乎已损坏

Macos mac上的bash_配置文件似乎已损坏,macos,terminal,.bash-profile,Macos,Terminal,.bash Profile,我试着在node.js上工作,我改变了一些变量,我似乎对终端造成了一些损坏,但我无法逆转 现在每当我打开终端时,它都会显示 Last login: Tue Apr 5 19:00:57 on ttys001 -bash: export: `=': not a valid identifier -bash: export: `/usr/local/Cellar/mongodb/3.2.0': not a valid identifier -bash: export: `/usr/local/bi

我试着在node.js上工作,我改变了一些变量,我似乎对终端造成了一些损坏,但我无法逆转

现在每当我打开终端时,它都会显示

Last login: Tue Apr  5 19:00:57 on ttys001
-bash: export: `=': not a valid identifier
-bash: export: `/usr/local/Cellar/mongodb/3.2.0': not a valid identifier
-bash: export: `/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/bin': not a valid identifier
-bash: alias: ll: not found
-bash: alias: =: not found
-bash: alias: ls -lahG: not found
env: bash: No such file or directory
-bash: which: command not found
-bash: which: command not found
-bash: which: command not found
-bash: uname: command not found
-bash: ps: command not found
-bash: touch: command not found
Adams-MacBook-Pro:~ adamkatz$ 
如果我尝试打开
bash_profile
它会显示:

permission denied
如果我使用sudo命令,它会说:

sudo not found
许多其他命令都会出现这种错误

env: bash: No such file or directory
那么,如何将我的
bash_配置文件
重置到它的起始位置呢


感谢您的帮助

我想您已经得到了
导出$THIS=THAT
而不是
导出THIS=THAT
(并且
$THIS
扩展为零)。运行
/usr/bin/vi~/.bash_profile
并更正它。感谢该命令使用环境变量打开了某些内容,但它是不可编辑的,因为
$PATH
被破坏,您需要使用像
ls
sudo
这样的命令的完整路径来修复权限。好的,谢谢,我是在第一篇文章中得到它的,如果你发表评论,我会用绿色勾选:)