小编Str*_*one的帖子

如何在 Mac OSX 上重置 Bash,.bash_profile 已损坏且 bash 不再有效

我在运行最新版本的 Mountain Lion 的 MacBook Pro 上。

我真的需要一些帮助,我已经设法破坏了我的 .bash_profile(我认为),这样每次打开终端时都会出现下面列出的错误。

-bash: export: `/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/go/bin': not a valid identifier
-bash: export: `/Users/rob/Applications/sbt/bin:': not a valid identifier
env: bash: No such file or directory
env: bash: No such file or directory
env: bash: No such file or directory
env: bash: No such file or directory
env: bash: No such file or directory
-bash: tar: command not found
-bash: grep: command not found
-bash: cat: command not found
-bash: find: command not found
Run Code Online (Sandbox Code Playgroud)

我不确定发生了什么,我没有 sudo、cd …

terminal bash .bash-profile macos

19
推荐指数
3
解决办法
13万
查看次数

标签 统计

.bash-profile ×1

bash ×1

macos ×1

terminal ×1